issues
search
hirolibe
/
insta-app-hiro
0
stars
0
forks
source link
気づき(form_with)
#10
Open
hirolibe
opened
3 months ago
hirolibe
commented
3 months ago
form_withメソッドでPOSTするurlは、引数として渡したモデルで自動生成される 例:「model: @comment」⇒「comments_path」
そのため、記事などに紐づいたコメントを投稿(POST)する場合は、urlを指定する必要がある 例:「url: album_comments_path(@comment.album_id)」