Has anyone implemented a generic to_xml for ActiveRecord? I need something which can take an AR and iterate through all columns, associations, etc. and spit out an XML representation. Josh
Josh Knowles wrote:> Has anyone implemented a generic to_xml for ActiveRecord? I need > something which can take an AR and iterate through all columns, > associations, etc. and spit out an XML representation. > > JoshYou could study this code: http://flgr.0x42.net/structure/structure.erb Which is written by Florian Gross. See the thread: ''[ANN] Structure graphs''. Cheers, Erik.