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

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.
francois.beausoleil (Guest)
on 2005-11-30 02: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

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.