Skip to content

Instantly share code, notes, and snippets.

@Mikr0Tik
Created August 12, 2008 13:48
Show Gist options
  • Save Mikr0Tik/5041 to your computer and use it in GitHub Desktop.
Save Mikr0Tik/5041 to your computer and use it in GitHub Desktop.
documents = Document.find :all
format.xml{render :xml=>documents.to_xml(:include=>{:person=>{:only=>[:surname, :age]}, //how to rename the attribute "surname" to "name"?
:only=>:nr)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment