Unfortunately, by_id_xml still returns the same XML structure, with
all of the table's fields, but without the new field "description"...
Is this due to the fact that description is a method and not a class
variable? In which case, is there a way I can tell ActiveRecord to add
the "description" field to the model?
to_xml takes a bunch of options for that kind of thing. In particular, the :methods key is an array of methods to call and include in the xml, so in your case
@my_model.to_xml :methods => [:description]
ought to do the job.