回答編集履歴

2

修正

2022/07/15 10:30

投稿

winterboum
winterboum

スコア23284

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: [@post, @comment], url: user_post_comments_path(@post,@comment), `
11
+ `<%= form_with model: [current_user, @post, @comment], `
12
+

1

追記

2022/07/15 10:26

投稿

winterboum
winterboum

スコア23284

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), `