Regularly, you create a resource in html via form. you ve got some
naming conventions for form fields and rails will bring it together
for you in params hash.
My question is, how my i do this with json. I would like to create a
resource with pure json.
do I have to follow specific naming,syntax convention also in order to
get everything in my params hash ?
Just a simple example, Im doing http post for player resource with
following body:
{"player": {"firstname":"Bob","lastname":"Alice"}}
If I do a params.each do key, value in my create action
I get my json as a key ???