here's my problem.. resource: user method: create
I call curl like this:
curl -X POST -H 'Content-type: text/xml' -d '<xml><login>john</login><password>123456</password></xml>' http://0.0.0.0:3000/users
but the params hash in rails look like this:
{"xml"=> {"login"=>"luca", "password"=>"123456"}}
I want it to look like this:
{"login"=>"luca", "password"=>"123456"}
I can get it to be like that if I pass the parameters on the url (...?login=luca&pas....), but that's not good...
any idea?