custom layout for devise in ruby on rails

custom layout for devise in ruby on rails

in your config/application.rb puts:

config.to_prepare do
            Devise::SessionsController.layout      "application"
            Devise::RegistrationsController.layout "application"
            Devise::RegistrationsController.layout "application"
            Devise::ConfirmationsController.layout "application"
            Devise::UnlocksController.layout       "application"
            Devise::PasswordsController.layout     "application"
            Devise::InvitationsController.layout   "application"
      end
 
 you will custom layout for any controller of devise

相关推荐