Slide 26
Slide 26 text
Helper for Comments
HTTP Verb Path action
GET
post_comments_path(:post_id) index
GET
post_comment_path(:post_id, :id) show
GET
new_post_comment_path(:post_id) new
GET
edit_post_comment_path(:post_id) edit
POST post_comments_path(:post_id) create
PUT post_comment_path(:post_id, :id) update
DELETE post_comment_path(:post_id, :id) destroy