I want to do something very simple and basic. All that I want to do is
create an action that returns xml using an rxml template.
exempt_from_layout function does not work and rendering an rxml file
uses a layout for some reason.
Any ideas?
I want to do something very simple and basic. All that I want to do is
create an action that returns xml using an rxml template.
exempt_from_layout function does not work and rendering an rxml file
uses a layout for some reason.
Any ideas?
I want to do something very simple and basic. All that I want to do is
create an action that returns xml using an rxml template.
exempt_from_layout function does not work and rendering an rxml file
uses a layout for some reason.
At the end of your action method put:
render :layout => false
That should do it.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs