Not using view layout application.rhtml on certian things

render :action => 'some_action', :layout => false

Maurício Linhares wrote:

render :action => 'some_action', :layout => false

Maur�cio Linhares (pt-br) |

On Fri, Feb 20, 2009 at 2:23 PM, Morgan Morgan

Thank you.. worked like a charm.

You could also use something like the following:

class AController < ActionController::Base
layout “my_layout”, :except => [ :action1, :action2 ]


Mauricio’s method might be preferred when you’re using the default layout and you’ve just got a couple of actions that don’t require the layout.