Restful controller and xml updates

Gianluca Tessarolo
Thu, 21 Feb 2008 16:31:45 -0000

Hi to all the crew,

I cannot figure out if is there a way to create/update an object and its
associations with a single xml using a restful controller (put or post
method)

Does anyone know how to handle this task (or tell me which is the best
solution ?)...

For example:

Role (has many users through LinkUserRole)
User (has many users through LinkUserRole)
LinkUserRole (interface)

Now, I know very well how to hanldle the association of user/roles into
controller for html input but how can I do when I receive an xml ?
Which elements must be presente into the xml ?

Someone has an example ?

Many thanks in advance...


--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---