質問編集履歴
1
config/routesを追加させていただきました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -202,5 +202,18 @@
|
|
202
202
|
end
|
203
203
|
|
204
204
|
```
|
205
|
+
```ruby
|
206
|
+
Rails.application.routes.draw do
|
207
|
+
devise_for :users
|
208
|
+
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
209
|
+
root 'homes#top'
|
210
|
+
resources :users
|
211
|
+
resources :posts do
|
212
|
+
resource :favorites, only: [:create, :destroy]
|
213
|
+
resources :post_comments, only: [:create, :destroy]
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
```
|
205
218
|
不要な点がありましたらお申し付けください。
|
206
219
|
分かる方がいらっしゃいましたらぜひよろしくお願いします。
|