Skip to content

Instantly share code, notes, and snippets.

@jlebrech
Created January 11, 2012 17:14
Show Gist options
  • Save jlebrech/1595667 to your computer and use it in GitHub Desktop.
Save jlebrech/1595667 to your computer and use it in GitHub Desktop.
routes
book_chapters GET /books/:book_id/chapters(.:format) {:action=>"index", :controller=>"chapters"}
POST /books/:book_id/chapters(.:format) {:action=>"create", :controller=>"chapters"}
new_book_chapter GET /books/:book_id/chapters/new(.:format) {:action=>"new", :controller=>"chapters"}
edit_chapter GET /chapters/:id/edit(.:format) {:action=>"edit", :controller=>"chapters"}
chapter GET /chapters/:id(.:format) {:action=>"show", :controller=>"chapters"}
PUT /chapters/:id(.:format) {:action=>"update", :controller=>"chapters"}
DELETE /chapters/:id(.:format) {:action=>"destroy", :controller=>"chapters"}
books GET /books(.:format) {:action=>"index", :controller=>"books"}
POST /books(.:format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment