Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rails resource routing
/* ====================== */
/* = resources :baskets = */
/* ====================== */
butler_baskets GET /butler/baskets(.:format) {:action=>"index", :controller=>"butler/baskets"}
POST /butler/baskets(.:format) {:action=>"create", :controller=>"butler/baskets"}
new_butler_basket GET /butler/baskets/new(.:format) {:action=>"new", :controller=>"butler/baskets"}
edit_butler_basket GET /butler/baskets/:id/edit(.:format) {:action=>"edit", :controller=>"butler/baskets"}
butler_basket GET /butler/baskets/:id(.:format) {:action=>"show", :controller=>"butler/baskets"}
PUT /butler/baskets/:id(.:format) {:action=>"update", :controller=>"butler/baskets"}
DELETE /butler/baskets/:id(.:format) {:action=>"destroy", :controller=>"butler/baskets"}
/* ===================== */
/* = resources :basket = */
/* ===================== */
butler_basket_index GET /butler/basket(.:format) {:action=>"index", :controller=>"butler/basket"}
POST /butler/basket(.:format) {:action=>"create", :controller=>"butler/basket"}
new_butler_basket GET /butler/basket/new(.:format) {:action=>"new", :controller=>"butler/basket"}
edit_butler_basket GET /butler/basket/:id/edit(.:format) {:action=>"edit", :controller=>"butler/basket"}
butler_basket GET /butler/basket/:id(.:format) {:action=>"show", :controller=>"butler/basket"}
PUT /butler/basket/:id(.:format) {:action=>"update", :controller=>"butler/basket"}
DELETE /butler/basket/:id(.:format) {:action=>"destroy", :controller=>"butler/basket"}
/* ===================== */
/* = resource :baskets = */
/* ===================== */
butler_baskets POST /butler/baskets(.:format) {:action=>"create", :controller=>"butler/baskets"}
new_butler_baskets GET /butler/baskets/new(.:format) {:action=>"new", :controller=>"butler/baskets"}
edit_butler_baskets GET /butler/baskets/edit(.:format) {:action=>"edit", :controller=>"butler/baskets"}
GET /butler/baskets(.:format) {:action=>"show", :controller=>"butler/baskets"}
PUT /butler/baskets(.:format) {:action=>"update", :controller=>"butler/baskets"}
DELETE /butler/baskets(.:format) {:action=>"destroy", :controller=>"butler/baskets"}
/* ==================== */
/* = resource :basket = */
/* ==================== */
butler_basket POST /butler/basket(.:format) {:action=>"create", :controller=>"butler/baskets"}
new_butler_basket GET /butler/basket/new(.:format) {:action=>"new", :controller=>"butler/baskets"}
edit_butler_basket GET /butler/basket/edit(.:format) {:action=>"edit", :controller=>"butler/baskets"}
GET /butler/basket(.:format) {:action=>"show", :controller=>"butler/baskets"}
PUT /butler/basket(.:format) {:action=>"update", :controller=>"butler/baskets"}
DELETE /butler/basket(.:format) {:action=>"destroy", :controller=>"butler/baskets"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.