Last active
December 22, 2015 11:28
-
-
Save hzmangel/6465692 to your computer and use it in GitHub Desktop.
Using another layout for devise view
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 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