Add following code to your Devise.rb file
# append to end of config/initializers/devise.rb Rails.application.config.to_prepare do Devise::SessionsController.layout "devise" Devise::RegistrationsController.layout proc { |controller| user_signed_in? ? "application" : "devise" } Devise::ConfirmationsController.layout "devise" Devise::UnlocksController.layout "devise" Devise::PasswordsController.layout "devise" end