resources :posts
posts_path index get
post_path(@post) show get
new_post_path new get
posts_path(@post) create post eg: form_for (@post, :url=>posts_path(@post))
edit_post_path edit get
post_path(@post) update put
post_path(@post) destroy delete eg: link_to 'remove', post_path(@post),:method=>'delete'
Nest resources : events, :comment
map.resoureces : events do | event |
event.resoureces :comments
end
event_comments_path(@event) index get
event_comment_path(@event,@comment) show get
new_event_comment_path new get
event_comments_path(@post,@comment) create post
edit_event_comment(@event,@comment) edit get
event_comment_path(@event,@comment) update put
event_comment_path(@event,@comment) destroy delete