Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Sometimes you just want an XML representation of an object, and Active Record models provide easy, automatic XML generation via the to_xml method. Let’s play with this method in the console and see what it can do.
I’ll fire up the console for my book-authoring sample application and find an Active Record object to manipulate.