Skip to content

Instantly share code, notes, and snippets.

@curtis
Created July 21, 2009 01:27
Show Gist options
  • Save curtis/151040 to your computer and use it in GitHub Desktop.
Save curtis/151040 to your computer and use it in GitHub Desktop.
Just an example of Rails routes after using the :as modifier
time_entries GET /time(.:format) {:action=>"index", :controller=>"time_entries"}
POST /time(.:format) {:action=>"create", :controller=>"time_entries"}
new_time_entry GET /time/new(.:format) {:action=>"new", :controller=>"time_entries"}
edit_time_entry GET /time/:id/edit(.:format) {:action=>"edit", :controller=>"time_entries"}
time_entry GET /time/:id(.:format) {:action=>"show", :controller=>"time_entries"}
PUT /time/:id(.:format) {:action=>"update", :controller=>"time_entries"}
DELETE /time/: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