回答編集履歴

1

routes\.rbを修正

2017/08/01 06:58

投稿

YukiYonekura
YukiYonekura

スコア127

test CHANGED
@@ -21,3 +21,25 @@
21
21
 
22
22
 
23
23
  http://railsdoc.com/routes
24
+
25
+
26
+
27
+ ## 追記
28
+
29
+ ``` routes.rb
30
+
31
+ Rails.application.routes.draw do
32
+
33
+ resources :poems, only: [:update, :create] do
34
+
35
+ collection do
36
+
37
+ get :edit
38
+
39
+ end
40
+
41
+ end
42
+
43
+ end
44
+
45
+ ```