Skip to content

Instantly share code, notes, and snippets.

@curtis
Created July 21, 2009 01:17
Show Gist options
  • Save curtis/151034 to your computer and use it in GitHub Desktop.
Save curtis/151034 to your computer and use it in GitHub Desktop.
Just an example of Rails routes generated from a resource
time_entries GET /time_entries(.:format) {:action=>"index", :controller=>"time_entries"}
POST /time_entries(.:format) {:action=>"create", :controller=>"time_entries"}
new_time_entry GET /time_entries/new(.:format) {:action=>"new", :controller=>"time_entries"}
edit_time_entry GET /time_entries/:id/edit(.:format) {:action=>"edit", :controller=>"time_entries"}
time_entry GET /time_entries/:id(.:format) {:action=>"show", :controller=>"time_entries"}
PUT /time_entries/:id(.:format) {:action=>"update", :controller=>"time_entries"}
DELETE /time_entries/:id(.:format) {:action=>"destroy", :controller=>"time_entries"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment