Created
May 18, 2010 19:11
-
-
Save erichurst/405390 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SomeController < ApplicationController | |
layout "some_layout", :only => [:new, :edit] | |
... | |
end | |
#=> renders all actions, other than new and edit, with no layout. | |
class SomeController < ApplicationController | |
def edit | |
... | |
render :layout => "some_layout" | |
end | |
end | |
#=> works how you would expect. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment