質問編集履歴
1
ルーティングの記述を追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -150,6 +150,20 @@
|
|
150
150
|
</main>
|
151
151
|
```
|
152
152
|
|
153
|
+
```
|
154
|
+
routes.rb
|
155
|
+
|
156
|
+
Rails.application.routes.draw do
|
157
|
+
devise_for :users
|
158
|
+
root to: "prototypes#index"
|
159
|
+
resources :prototypes, only: [:new, :create, :show, :edit, :update, :destroy] do
|
160
|
+
resources :comments, only: :create
|
161
|
+
end
|
162
|
+
resources :users, only: :show
|
163
|
+
end
|
164
|
+
```
|
165
|
+
|
166
|
+
|
153
167
|
エラーが出るわけではないのですが、削除されません。
|
154
168
|
ルーティングの設定
|
155
169
|
パスの指定
|