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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
adamfowleruk (Guest)
on 2009-02-06 19: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!)


adamfowleruk (Guest)
on 2009-02-06 22:18
(Received via mailing list)
Oh BTW just added recursive to_xml too, which supports
ActiveRecord::Base objects

This topic is locked and can not be replied to.