Skip to content

Instantly share code, notes, and snippets.

@chandracarney
Last active August 30, 2015 10:56
Show Gist options
  • Save chandracarney/708ce271d81fa210a1a2 to your computer and use it in GitHub Desktop.
Save chandracarney/708ce271d81fa210a1a2 to your computer and use it in GitHub Desktop.
REST
Posts Posts Controller
POST -> CREATE index
PUT -> READ create
PUT -> UPDATE show
DELETE -> DESTROY edit
PATCH -> UPDATE update
head destroy
update
In a new rails app add this line:
rescources :users
and run rake
times to use query strings: if you want to pass in a URL on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment