Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@erichurst
Created May 18, 2010 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erichurst/405390 to your computer and use it in GitHub Desktop.
Save erichurst/405390 to your computer and use it in GitHub Desktop.
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