On 27 Mar 2008, at 13:01, Freg wrote:
> I have database in MYSQL, from its two table , I want to create XML.
>
> I extracted the data from the table A using active record and that
> data can be saved in another table in the form of XML also.
>
> But inside the extracted data, I want to replace ids with the name
> provided in table B.
>
> But the customizing the XML is notworking . Please help me on this.
Generate a view myview.xml.builder (notice the builder extension at
the end) or in Rails < 2 .rxml and use builder to generate your xml.
This link provides some examples:
http://snippets.dzone.com/tag/rxml
Best regards
Peter De Berdt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---