I set up a simple new rails application with model entry, with attributes title and content using scaffolding.
title
content
now I am trying to use curl to
I ran a test and got the error MultiJson::DecodeError (743: unexpected token at '{'content':'I belong to AAA','title':'AAA'}'):
MultiJson::DecodeError (743: unexpected token at '{'content':'I belong to AAA','title':'AAA'}'):
JSON requires double quotes for keys and strings, not single quotes. Try --data '{"content":"I belong to AAA","title":"AAA"}'
--data '{"content":"I belong to AAA","title":"AAA"}'