+45 70 27 40 08

sales@meeho.net

» 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!

Easy XML serialization in Ruby on Rails. Beautiful!

 

If you have something to say, feel free to drop a comment below:

Type in your name here

Type in your e-mail address here

Type in your web site address here

 

+45 70 27 40 08
Open office hours

info@meeho.net

support@meeho.net

News from the Meeho!™ Blog:

02/14 2011 » Fixing the "NoMethodError: undefined method ‘to_sym' for false:FalseClass" error when working with I18n in Ruby on Rails

02/03 2011 » Soon to come: IMAP integration

01/27 2011 » Meeho!™ App version 1.0.3 is out!

01/26 2011 » Cool new iPad stand

We live at Diplomvej 381, 2800 Kgs. Lyngby, Denmark: