質問編集履歴
1
ルート情報追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -33,3 +33,27 @@
|
|
33
33
|
となります。 m_show_article_path[:user_id] でuser_idが拾えていない(?)のか、 こういった場合のコードの書き方がわかりません。
|
34
34
|
|
35
35
|
どなたかご教授していただけないでしょうか。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
ルート追記しました。よろしくお願いします。
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
m_show_article GET /articles/:id/m_show(.:format) articles#m_show
|
44
|
+
|
45
|
+
articles GET /articles(.:format) articles#index
|
46
|
+
|
47
|
+
POST /articles(.:format) articles#create
|
48
|
+
|
49
|
+
new_article GET /articles/new(.:format) articles#new
|
50
|
+
|
51
|
+
edit_article GET /articles/:id/edit(.:format) articles#edit
|
52
|
+
|
53
|
+
article GET /articles/:id(.:format) articles#show
|
54
|
+
|
55
|
+
PATCH /articles/:id(.:format) articles#update
|
56
|
+
|
57
|
+
PUT /articles/:id(.:format) articles#update
|
58
|
+
|
59
|
+
DELETE /articles/:id(.:format) articles#destroy
|