It's very simple and easy to use. You write the usual crud controllers. Then you put
Code:
map.resources :the_controller
in your routes.rb. This defines cleaner urls:
Code:
old url => new url -- HTTP verb
-------------------------------------
posts/create => posts -- POST
posts/view/2 => posts/2 -- GET
posts/update/2 => posts/2 -- PUT
posts/destroy/2 => posts/2 -- DELETE
And you can use:
Code:
link_to post_url(@post)
link_to posts_url
vs
link_to :controller => 'posts', :action => 'view', :id => @post
link_to :controller => 'posts', :action => 'list'
You have to use one controller per resource: one posts controller and one comments controller, not posts/comments combined into one controller. This is the REST development style.
Bookmarks