Created
April 19, 2010 02:21
-
-
Save onethirtyfive/370702 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a typical, if short Rails 3.0 'rake routes' output for a resource defined in routes with 'resources :posts' | |
[22:15][me@localhost:rails_project(master)]$ rake routes | |
(in /home/me/Code/rails_project) | |
GET /posts(.:format) {:controller=>"posts", :action=>"index"} | |
posts POST /posts(.:format) {:controller=>"posts", :action=>"create"} | |
new_post GET /posts/new(.:format) {:controller=>"posts", :action=>"new"} | |
GET /posts/:id(.:format) {:controller=>"posts", :action=>"show"} | |
PUT /posts/:id(.:format) {:controller=>"posts", :action=>"update"} | |
post DELETE /posts/:id(.:format) {:controller=>"posts", :action=>"destroy"} | |
edit_post GET /posts/:id/edit(.:format) {:controller=>"posts", :action=>"edit"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment