Skip to content

Instantly share code, notes, and snippets.

@telegraham
Created September 18, 2018 19:54
Show Gist options
  • Save telegraham/a9ef1e4d36e913178f8bc06d02a5d3f9 to your computer and use it in GitHub Desktop.
Save telegraham/a9ef1e4d36e913178f8bc06d02a5d3f9 to your computer and use it in GitHub Desktop.
CRUD SQL ActiveRecord HTTP Verb URL
Create INSERT Dog.create POST /dogs
↳ form - - GET /dogs/new
Read
↳ list SELECT Dog.all GET /dogs
↳ one SELECT Dog.find GET /dogs/:id
Update UPDATE @fido.update PUT (PATCH) /dogs/:id
↳ form - - GET /dogs/:id/edit
Delete DELETE @fido.destroy DELETE /dogs/:id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment