Forum: Ruby on Rails How to select between RXML and RHTML template at runtime ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3dd4b52a0946bd698b1d1635a46ea3a3?d=identicon&s=25 francois.beausoleil (Guest)
on 2005-11-30 01:43
(Received via mailing list)
Hi !

I have some actions which I'd like to serve using XML instead of HTML.
 I have two action templates:  action.rhtml and action.rxml.  If I do
render :action => 'action', ActionPack automatically selects the RHTML
template.

Is there a programmatic way of selecting which template I'd like to use
?

Thanks !
This topic is locked and can not be replied to.