回答編集履歴
2
修正
answer
CHANGED
@@ -4,5 +4,8 @@
|
|
4
4
|
にしてみて
|
5
5
|
|
6
6
|
ああ、urlつけないとエラーなのね
|
7
|
-
|
7
|
+
え?
|
8
|
+
post_comments_path でなく user_post_comments_path ?
|
9
|
+
なら
|
10
|
+
|
8
|
-
`<%= form_with model: [@post, @comment],
|
11
|
+
`<%= form_with model: [current_user, @post, @comment], `
|
1
追記
answer
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
`<%= form_with model: [@post, @comment], url: user_post_comments_path, `
|
2
2
|
を
|
3
3
|
`<%= form_with model: [@post, @comment], `
|
4
|
-
にしてみて
|
4
|
+
にしてみて
|
5
|
+
|
6
|
+
ああ、urlつけないとエラーなのね
|
7
|
+
では
|
8
|
+
`<%= form_with model: [@post, @comment], url: user_post_comments_path(@post,@comment), `
|