Skip to content

Instantly share code, notes, and snippets.

@jcmeyer10
jcmeyer10 / gist:ccddcc239676d58094dd
Created November 10, 2015 18:14
Commands and Error Messages When Trying to POST to my table through CURL
I am trying to run this. I am able to post to the table through Rails C, so I have access from there.
curl --request POST --header "Authorization: Token token="d168c8333a2b72bf7ad7bfe4bb9c669d" --header "Content-Type: application/json" -d '{
"beer": {
"name":"UFO"
"brewery":"Harpoon"
"style":"Hefe"
"location_id":"11"
}
}' http://localhost:3000/beers