質問編集履歴

1

routes.rbを追加しました。

2018/09/27 08:17

投稿

niichaso
niichaso

スコア17

test CHANGED
File without changes
test CHANGED
@@ -136,6 +136,18 @@
136
136
 
137
137
  ```
138
138
 
139
+ #routes.rb
140
+
141
+ ```ruby
142
+
143
+ get '/users/products/:id', to: 'users#product', as: :user_product
144
+
145
+
146
+
147
+ delete '/users/products/:id/', to: 'products#destroy'
148
+
149
+ ```
150
+
139
151
 
140
152
 
141
153
  関係してそうなコードはこの辺りかと思います。