Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created November 20, 2011 04:59
Show Gist options
  • Select an option

  • Save joegaudet/1379817 to your computer and use it in GitHub Desktop.

Select an option

Save joegaudet/1379817 to your computer and use it in GitHub Desktop.
resources :course_topics, :path => "course-topics"
yields
course_topics GET /course_topics(.:format) {:action=>"index", :controller=>"course_topics"}
POST /course_topics(.:format) {:action=>"create", :controller=>"course_topics"}
new_course_topic GET /course_topics/new(.:format) {:action=>"new", :controller=>"course_topics"}
edit_course_topic GET /course_topics/:id/edit(.:format) {:action=>"edit", :controller=>"course_topics"}
course_topic GET /course_topics/:id(.:format) {:action=>"show", :controller=>"course_topics"}
PUT /course_topics/:id(.:format) {:action=>"update", :controller=>"course_topics"}
DELETE /course_topics/:id(.:format) {:action=>"destroy", :controller=>"course_topics"}
GET /course-topics(.:format) {:action=>"index", :controller=>"course_topics"}
POST /course-topics(.:format) {:action=>"create", :controller=>"course_topics"}
GET /course-topics/new(.:format) {:action=>"new", :controller=>"course_topics"}
GET /course-topics/:id/edit(.:format) {:action=>"edit", :controller=>"course_topics"}
GET /course-topics/:id(.:format) {:action=>"show", :controller=>"course_topics"}
PUT /course-topics/:id(.:format) {:action=>"update", :controller=>"course_topics"}
DELETE /course-topics/:id(.:format) {:action=>"destroy", :controller=>"course_topics"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment