Skip to content

Instantly share code, notes, and snippets.

@iamvery
Created April 7, 2014 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamvery/10021017 to your computer and use it in GitHub Desktop.
Save iamvery/10021017 to your computer and use it in GitHub Desktop.
» bin/rake routes
Prefix Verb URI Pattern Controller#Action
api_articles GET /api/articles(.:format) api/v1/articles#index
POST /api/articles(.:format) api/v1/articles#create
new_api_article GET /api/articles/new(.:format) api/v1/articles#new
edit_api_article GET /api/articles/:id/edit(.:format) api/v1/articles#edit
api_article GET /api/articles/:id(.:format) api/v1/articles#show
PATCH /api/articles/:id(.:format) api/v1/articles#update
PUT /api/articles/:id(.:format) api/v1/articles#update
DELETE /api/articles/:id(.:format) api/v1/articles#destroy
GET /api/articles(.:format) api/v2/articles#index
POST /api/articles(.:format) api/v2/articles#create
GET /api/articles/new(.:format) api/v2/articles#new
GET /api/articles/:id/edit(.:format) api/v2/articles#edit
GET /api/articles/:id(.:format) api/v2/articles#show
PATCH /api/articles/:id(.:format) api/v2/articles#update
PUT /api/articles/:id(.:format) api/v2/articles#update
DELETE /api/articles/:id(.:format) api/v2/articles#destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment