質問編集履歴
2
ファイルパスを追記致しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
-
### index.html.erb
|
77
|
+
### views/toppages/index.html.erb
|
78
78
|
|
79
79
|
問合せフォームのソースコードはこちらに"contacts/contact/form"としてrenderしています。
|
80
80
|
|
@@ -100,7 +100,7 @@
|
|
100
100
|
|
101
101
|
|
102
102
|
|
103
|
-
### _contact_form.html.erb
|
103
|
+
### views/contacts/_contact_form.html.erb
|
104
104
|
|
105
105
|
問合せフォームのソースコードになります。
|
106
106
|
|
@@ -168,7 +168,9 @@
|
|
168
168
|
|
169
169
|
|
170
170
|
|
171
|
-
###application_mailer.rb
|
171
|
+
###app/mailers/application_mailer.rb
|
172
|
+
|
173
|
+
|
172
174
|
|
173
175
|
こちらはデフォルトのままで変更していません。
|
174
176
|
|
@@ -186,7 +188,7 @@
|
|
186
188
|
|
187
189
|
|
188
190
|
|
189
|
-
###contact_mailer.rb
|
191
|
+
###app/mailers/contact_mailer.rb
|
190
192
|
|
191
193
|
herokuで`heroku config:set ENV_MAIL(環境変数)=値`は実行済みです。
|
192
194
|
|
@@ -210,7 +212,7 @@
|
|
210
212
|
|
211
213
|
|
212
214
|
|
213
|
-
###contact_mail.html.erb
|
215
|
+
###views/contact_mailer/contact_mail.html.erb
|
214
216
|
|
215
217
|
```
|
216
218
|
|
1
Routes.rbの詳細を記述しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,38 @@
|
|
34
34
|
|
35
35
|
Rails.application.routes.draw do
|
36
36
|
|
37
|
+
root to: "toppages#index"
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
get "signup", to: "users#new"
|
42
|
+
|
43
|
+
resources :users, only: [:show, :new, :create]
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
get "login", to: "sessions#new"
|
48
|
+
|
49
|
+
post "login", to: "sessions#create"
|
50
|
+
|
51
|
+
delete "logout", to: "sessions#destroy"
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
get "housework_list", to: "houseworks#index"
|
56
|
+
|
57
|
+
resources :houseworks, only: [:new, :create, :destroy]
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
resources :housework_schedules, only: [:new, :create, :destroy]
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
resources :relationships, only: [:create, :update, :destroy]
|
66
|
+
|
67
|
+
|
68
|
+
|
37
69
|
resources :contacts, only: [:new, :create]
|
38
70
|
|
39
71
|
end
|