Forum: Ruby on Rails Getting xml file display as xml when using render :text

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sudhi K. (Guest)
on 2009-03-05 11:44

I have a problem when I do a

fd ="test","rb")
render :text

I the "test" file contains xml


The output is shown as "dog cat" how do I get the xml shown as is with
the animal tag also shown?

This topic is locked and can not be replied to.