Skip to content

Instantly share code, notes, and snippets.

@accuser
Created September 20, 2010 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save accuser/587767 to your computer and use it in GitHub Desktop.
Save accuser/587767 to your computer and use it in GitHub Desktop.
$ rake routes
posts GET /posts(.:format) {:action=>"index", :controller=>"posts"}
posts POST /posts(.:format) {:action=>"create", :controller=>"posts"}
new_post GET /posts/new(.:format) {:action=>"new", :controller=>"posts"}
edit_post GET /posts/:id(/:slug)/edit(.:format) {:action=>"edit", :controller=>"posts"}
post GET /posts/:id(/:slug)(.:format) {:action=>"show", :controller=>"posts"}
post PUT /posts/:id(/:slug)(.:format) {:action=>"update", :controller=>"posts"}
post DELETE /posts/:id(/:slug)(.:format) {:action=>"destroy", :controller=>"posts"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment