Skip to content

Instantly share code, notes, and snippets.

@marjinal1st
Created February 22, 2014 10:38
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 marjinal1st/9151813 to your computer and use it in GitHub Desktop.
Save marjinal1st/9151813 to your computer and use it in GitHub Desktop.
Devise Controller Layout Change
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