Skip to content

Instantly share code, notes, and snippets.

@bronson
Last active March 16, 2018 19:57
Show Gist options
  • Save bronson/12898d711f94c02707af344ace9d1ab6 to your computer and use it in GitHub Desktop.
Save bronson/12898d711f94c02707af344ace9d1ab6 to your computer and use it in GitHub Desktop.
routes
Prefix Verb URI Pattern Controller#Action
project_items GET /projects/:project_id/items(.:format) items#index
POST /projects/:project_id/items(.:format) items#create
new_project_item GET /projects/:project_id/items/new(.:format) items#new
edit_project_item GET /projects/:project_id/items/:id/edit(.:format) items#edit
project_item GET /projects/:project_id/items/:id(.:format) items#show
PATCH /projects/:project_id/items/:id(.:format) items#update
PUT /projects/:project_id/items/:id(.:format) items#update
DELETE /projects/:project_id/items/:id(.:format) items#destroy
projects GET /projects(.:format) projects#index
POST /projects(.:format) projects#create
new_project GET /projects/new(.:format) projects#new
edit_project GET /projects/:id/edit(.:format) projects#edit
project GET /projects/:id(.:format) projects#show
PATCH /projects/:id(.:format) projects#update
PUT /projects/:id(.:format) projects#update
DELETE /projects/:id(.:format) projects#destroy
capabilities GET /capabilities(.:format) items#capabilities
updates GET /updates(.:format) changelog#show
root GET / sessions#home
Rails.application.routes.draw do
resources :projects do
resources :items
end
get 'capabilities', to: 'items#capabilities'
get 'updates', to: 'changelog#show'
root to: 'sessions#home'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment