Layouts and Views

Hello, I have a controller which has two actions. For the first, I want to use the standard layout, but for the second, I don't want any layout. For example:

class MyController < ApplicationController   layout 'standard'

   def index      @display = 'this view has a standard layout!'    end

   def anotheraction      @display = 'this view has a standard layout, but I dont want it to!'    end end

Is there a way I can make 'anotheraction' not use the layout defined in the class?

Any help is appreciated!

Thank you, - Jeff Miller

nevermind, I just got it.

layout 'standard', :except => :anotheraction

Sorry for the post - I should have googled it more thoroughly first

You can also render :layout => false in the action you don’t want to have a layout. Make sure this is the last line in the method definition.