Skip to content

Instantly share code, notes, and snippets.

@Tinusw
Created May 14, 2018 13:01
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 Tinusw/1b63c450f36b1b02b5ed5074d0d09825 to your computer and use it in GitHub Desktop.
Save Tinusw/1b63c450f36b1b02b5ed5074d0d09825 to your computer and use it in GitHub Desktop.
// rake routes | grep resource
my_resource_index GET /my_resource(.:format) my_resource#index
POST /my_resource(.:format) my_resource#create
new_my_resource GET /my_resource/new(.:format) my_resource#new
edit_my_resource GET /my_resource/:id/edit(.:format) my_resource#edit
my_resource GET /my_resource/:id(.:format) my_resource#show
PATCH /my_resource/:id(.:format) my_resource#update
PUT /my_resource/:id(.:format) my_resource#update
DELETE /my_resource/:id(.:format) my_resource#destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment