Skip to content

Instantly share code, notes, and snippets.

@darkofabijan
Created February 5, 2014 21:37
Show Gist options
  • Save darkofabijan/8833685 to your computer and use it in GitHub Desktop.
Save darkofabijan/8833685 to your computer and use it in GitHub Desktop.
resources :containers
namespace :admin do
resources :containers
end
containers GET /containers(.:format) containers#index
POST /containers(.:format) containers#create
new_container GET /containers/new(.:format) containers#new
edit_container GET /containers/:id/edit(.:format) containers#edit
container GET /containers/:id(.:format) containers#show
PUT /containers/:id(.:format) containers#update
DELETE /containers/:id(.:format) containers#destroy
admin_containers GET /admin/containers(.:format) admin/containers#index
POST /admin/containers(.:format) admin/containers#create
new_admin_container GET /admin/containers/new(.:format) admin/containers#new
edit_admin_container GET /admin/containers/:id/edit(.:format) admin/containers#edit
admin_container GET /admin/containers/:id(.:format) admin/containers#show
PUT /admin/containers/:id(.:format) admin/containers#update
DELETE /admin/containers/:id(.:format) admin/containers#destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment