On Jun 21, 4:05 pm, Sarah Allen <[email protected]>
wrote:
> 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.
>
> I thought that posting to projects.xml would mean that setting the
> content-type wasn't required (even though I am doing that in cucumber,
> just cuz it seems like the right thing to do)
>
posting to .foo means that rails thinks you want .foo returned to you
(so you'll end up in your format.foo  block if you're using
respond_to )

The content type of the data you are posting is a separate thing
(although it would probably be sensible if it did assume that posting
to .xml means that you're sending xml)

Fred


> Sarah
> --
> Posted viahttp://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