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