render :xml => {:name => "David"}.to_xml
# Renders '<name>David</name>'
should be the last line in the action
On Mon, Apr 19, 2010 at 11:32 PM, Me <[email protected]> wrote:
> If I form and/or build up xml in a model or controller and assign it
> to a var how do I get a page to display the xml?
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.