Created
February 22, 2014 10:38
-
-
Save marjinal1st/9151813 to your computer and use it in GitHub Desktop.
Devise Controller Layout Change
This file contains hidden or 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
config.to_prepare do | |
Devise::SessionsController.layout "login" | |
Devise::RegistrationsController.layout proc{ |controller| user_signed_in? ? "application" : "devise" } | |
Devise::RegistrationsController.layout "login" | |
Devise::ConfirmationsController.layout "login" | |
Devise::UnlocksController.layout "login" | |
Devise::PasswordsController.layout "login" | |
Devise::InvitationsController.layout "admin" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment