On Jueves, 3 de mayo de 2012 06:34:35 Atastor escribió:
> The above mentioned section explains how to access various formats via
> active_scaffold.
>
> Two of the examples given describe how to create new objects, e.g. by
> uploading an xml file:
>
> PUT a new thing in XML
>
> > - PUT
http://my-server/things.xml
> >
> >
> > - data = <?xml version='1.0'
> > encoding='UTF-8'?><record><designation>special
> > thing</designation><quantity>3</quantity></record>
> >
> >
> > - content_type => :xml
> >
> > Isn't this wrong? Shouldn't this be POST and not PUT?
>
> Regards, Michael
I think so, but I haven't used it