Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.