Last active
August 30, 2015 10:56
-
-
Save chandracarney/708ce271d81fa210a1a2 to your computer and use it in GitHub Desktop.
REST
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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