I am using Ajax to send XML to an action in one of my controllers. In Firefox I can see that the XML is being sent. The Content-Type is text/ xml. This is the XML I am sending:
<?xml version="1.0" encoding="UTF-8"?> <users> <user action="UPDATE" id="1"> <create_date>09/26/07</create_date> <first_name>Chris</first_name> <last_name>Griffin</last_name> <address>123 Main St.</address> <city>Anytown</city> <state>MA</state> <phone>(201) 555-1234</phone> <active>true</active> </user> </users>
Looking at the request var. I can see that RAW_POST_DATA => "<<the
". However it doesn't show up in params. The action is getting
called. Isn't rails supposed to recognize the XML and create a hash from it?