`
chengyuanheng
  • 浏览: 19558 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics