If I use map.resources, Rails should automatically pull the parameters
out of the XML for me, right? Or do I have to do a slurp_params trick
like RailsNotes — The Ruby on Rails guides you wished you had. ? Finally,
how can I test this with curl? I’ve tried doing stuff like:
I’m running rails 1.2.2 and don’t have to pass the X_POST_DATA_FORMAT
header
to get Rails to read my XML string. This is the test script I use: http://snippets.dzone.com/posts/show/3521
It basically just sets the Accept and Content-Type headers and then puts
the
XML text.
Are you running these curl calls from your functional tests or from the
command line (on your dev setup)?
ed
command line (on your dev setup)?ed
I was just running it from the command line. I just did some testing,
and setting Content-Type to application/xml is all that’s needed
apparently. Thanks.
Pat
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.