Forum: Ruby on Rails A working from_xml including child relationships...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
02d575987935bb43a636870498c68f36?d=identicon&s=25 adamfowleruk (Guest)
on 2009-02-06 18:29
(Received via mailing list)
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/Ent...

Regards,

Adam.
02d575987935bb43a636870498c68f36?d=identicon&s=25 adamfowleruk (Guest)
on 2009-02-06 21:18
(Received via mailing list)
Oh BTW just added recursive to_xml too, which supports
ActiveRecord::Base objects

http://web.me.com/adamfowleruk/adamsapple/Blog/Ent...

Adam.
This topic is locked and can not be replied to.