views:

43

answers:

1

Hi,

I have a rails app and I want to render an action without using my application layout (which has page header / footer stuff in it).

How could I go about doing this?

+6  A: 

Here's some documentation about it: http://guides.rubyonrails.org/layouts_and_rendering.html

For your question:

render :layout => false

or

layout nil
marcgg
+1 beat me to it ;)
Daniel Vandersluis
Keep in mind `layout nil` will disable all layouts for that controller. And `layout nil, :only => [:action]` will also remove the layout for the controller (currently a bug).
Samuel