Frederick Cheung wrote:
> I assume this is a typo and than in the real world you had remembered
> the closing </project>. Having done that you need to get curl to set
> the content type appropriately.

Ah, so there must be a bug in my test.  This works:

$ curl -X POST -d '<project><title>Awesome</title><description>This is 
an awesome project.</description></project>' -H "Content-Type: 
application/xml" http://localhost:3000/projects.xml
<?xml version="1.0" encoding="UTF-8"?>
<project>
  <created-at type="datetime">2009-06-21T08:06:41-07:00</created-at>
  <description>This is an awesome project.</description>
  <id type="integer">3</id>
  <title>Awesome</title>
  <updated-at type="datetime">2009-06-21T08:06:41-07:00</updated-at>
</project>


Thanks Fred!


-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to