here is my problem .. resource: user method: create
I call curl as follows:
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 hashes in rails look like this:
{"xml"=> {"login"=>"luca", "password"=>"123456"}}
I want it to look like this:
{"login"=>"luca", "password"=>"123456"}
I can make it be like this if I pass parameters to url (...? Login = luca & pas ....), but this is not good ...
any idea?
source
share