Hi all, I''ve been looking at some options for getting a from_xml implementation working with ActiveRecord based classes. I had a few issues and couldn''t resolve them, so I rolled my own. Seems to work well for simple parent > child relationships, including collections. I thought I''d post in case anyone else was similarly afflicted. Here''s the blog post to get the code. Please add comments to let me know what you think. (Or to tell me I''m an idiot and missed something!) http://web.me.com/adamfowleruk/adamsapple/Blog/Entries/2009/2/6_Ruby_incoming_XML_processing.html Regards, Adam. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
adamfowleruk
2009-Feb-06 20:18 UTC
Re: A working from_xml including child relationships...
Oh BTW just added recursive to_xml too, which supports ActiveRecord::Base objects http://web.me.com/adamfowleruk/adamsapple/Blog/Entries/2009/2/6_Ruby_to_xml_implementation.html Adam. On Feb 6, 5:29 pm, adamfowleruk <adamfowle...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I''ve been looking at some options for getting a from_xml > implementation working with ActiveRecord based classes. I had a few > issues and couldn''t resolve them, so I rolled my own. Seems to work > well for simple parent > child relationships, including collections. > > I thought I''d post in case anyone else was similarly afflicted. Here''s > the blog post to get the code. Please add comments to let me know what > you think. (Or to tell me I''m an idiot and missed something!) > > http://web.me.com/adamfowleruk/adamsapple/Blog/Entries/2009/2/6_Ruby_... > > Regards, > > Adam.--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---