Hello,
I am having trouble understanding how the methods of a REST controller
are implemented, especially the new()/create() and edit()/update()
methods.

new() and edit() return a form if format is 'html'; would they return
an XML document if format were 'xml'?

Now say the client POSTs an XML document to create(), how do I know
that it is an XML document? In fact how do I know what the data format
is?

I have tried to find a simple but complete example that includes an
actual implementation (using both Pylons and Rails) of these methods,
but the articles/tutorials only go as far as showing how the routing
part works.

Could anyone give a little explanation about the implementation of
these methods?

Thanks!
Alexis Georges

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to