Postman API client + POST/PUT parameters

Hi all,

FYI. I am using a REST client Chrome extension called Postman and really like it. Try it out.

If I do a simple POST to create a new architecture

curl -u admin:secret -H 'Accept:application/json' -H "Content-Type:application/json" -X POST -d "{"name":"foo"}" http://0.0.0.0:3000/api/architectures

then the parameters from the log are:

Started POST "/api/architectures" for 127.0.0.1 at 2013-07-23 11:07:46 +0300
Processing by Api::V1::ArchitecturesController#create as JSON
Parameters: {"name"=>"foo", "architecture"=>{"name"=>"foo"}}

Why is "name" passed both as a root parameter and child parameter of "architecture"?

if I update an architecture

curl -u admin:secret -H 'Accept:application/json' -H "Content-Type:application/json" -X PUT -d "{"name":"bar"}" http://0.0.0.0:3000/api/architectures/16

then it's similar

Started PUT "/api/architectures/16" for 127.0.0.1 at 2013-07-23 11:12:11 +0300
Processing by Api::V1::ArchitecturesController#update as JSON
Parameters: {"name"=>"bar", "id"=>"16", "architecture"=>{"name"=>"bar"}}

Thanks,

Joseph