teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

ファイルパスを追記致しました。

2019/12/25 16:39

投稿

yutotech
yutotech

スコア5

title CHANGED
File without changes
body CHANGED
@@ -36,7 +36,7 @@
36
36
  end
37
37
  ```
38
38
 
39
- ### index.html.erb
39
+ ### views/toppages/index.html.erb
40
40
  問合せフォームのソースコードはこちらに"contacts/contact/form"としてrenderしています。
41
41
  ```
42
42
  <div class="container">
@@ -49,7 +49,7 @@
49
49
  </div>
50
50
  ```
51
51
 
52
- ### _contact_form.html.erb
52
+ ### views/contacts/_contact_form.html.erb
53
53
  問合せフォームのソースコードになります。
54
54
  ```
55
55
  <%= form_with(model: contact, local: true) do |f| %>
@@ -83,7 +83,8 @@
83
83
  end
84
84
  ```
85
85
 
86
- ###application_mailer.rb
86
+ ###app/mailers/application_mailer.rb
87
+
87
88
  こちらはデフォルトのままで変更していません。
88
89
  ```
89
90
  class ApplicationMailer < ActionMailer::Base
@@ -92,7 +93,7 @@
92
93
  end
93
94
  ```
94
95
 
95
- ###contact_mailer.rb
96
+ ###app/mailers/contact_mailer.rb
96
97
  herokuで`heroku config:set ENV_MAIL(環境変数)=値`は実行済みです。
97
98
 
98
99
  ```
@@ -104,7 +105,7 @@
104
105
  end
105
106
  ```
106
107
 
107
- ###contact_mail.html.erb
108
+ ###views/contact_mailer/contact_mail.html.erb
108
109
  ```
109
110
  <h3>お問い合わせ内容</h3>
110
111
 

1

Routes.rbの詳細を記述しました。

2019/12/25 16:39

投稿

yutotech
yutotech

スコア5

title CHANGED
File without changes
body CHANGED
@@ -16,6 +16,22 @@
16
16
  ### Routes.rb
17
17
  ```
18
18
  Rails.application.routes.draw do
19
+ root to: "toppages#index"
20
+
21
+ get "signup", to: "users#new"
22
+ resources :users, only: [:show, :new, :create]
23
+
24
+ get "login", to: "sessions#new"
25
+ post "login", to: "sessions#create"
26
+ delete "logout", to: "sessions#destroy"
27
+
28
+ get "housework_list", to: "houseworks#index"
29
+ resources :houseworks, only: [:new, :create, :destroy]
30
+
31
+ resources :housework_schedules, only: [:new, :create, :destroy]
32
+
33
+ resources :relationships, only: [:create, :update, :destroy]
34
+
19
35
  resources :contacts, only: [:new, :create]
20
36
  end
21
37
  ```