Skip to content

Instantly share code, notes, and snippets.

@rishabhmhjn
Created December 21, 2015 06:52
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 rishabhmhjn/c4e573c36dd09b25998b to your computer and use it in GitHub Desktop.
Save rishabhmhjn/c4e573c36dd09b25998b to your computer and use it in GitHub Desktop.
HTTP Verb   Path              Controller#Action   Used for
GET         /photos           photos#index        display a list of all photos
GET         /photos/new       photos#new          return an HTML form for creating a new photo
POST        /photos           photos#create       create a new photo
GET         /photos/:id       photos#show         display a specific photo
GET         /photos/:id/edit  photos#edit         return an HTML form for editing a photo
PATCH/PUT   /photos/:id       photos#update       update a specific photo
DELETE      /photos/:id       photos#destroy      delete a specific photo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment