» Simple XML serialization in Ruby on Rails
Posted by Kasper Tidemann on Monday 12th of April 2010 01:55:57 AM
Having looked into it for a few minutes, I was quite sure I needed to override the to_xml method in order to get the XML output I wanted for some functionality in Meeho!™. But I found that Ruby on Rails is quite capable of including the relation I was looking for by using :include as seen below. Beautiful!

Easy XML serialization in Ruby on Rails. Beautiful!





