Sudhi Kulkarni
2009-Mar-05 09:44 UTC
Getting xml file display as xml when using render :text
Hi,
I have a problem when I do a
fd = File.open("test","rb")
render :text fd.read
I the "test" file contains xml
<animal>dog</animal>
<animal>cat</animal>
The output is shown as "dog cat" how do I get the xml shown as is with
the animal tag also shown?
THanks,
Sudhi
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---