Skip to content

Instantly share code, notes, and snippets.

@hzmangel
Last active December 22, 2015 11:28
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 hzmangel/6465692 to your computer and use it in GitHub Desktop.
Save hzmangel/6465692 to your computer and use it in GitHub Desktop.
Using another layout for devise view
class ApplicationController < ActionController::Base
layout :layout
private
def layout
if devise_controller?
# NOTICE: symbol is *NOT* allowed here, use string instead.
"devise"
else
"application"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment