diff options
| author | mo k <m@mokhan.ca> | 2011-09-18 10:22:38 -0600 |
|---|---|---|
| committer | mo k <m@mokhan.ca> | 2011-09-18 10:22:38 -0600 |
| commit | a93175398e855cb96edc96c082dd76ec3611ec3c (patch) | |
| tree | ce924d2ee8d67e6ec8847fdf56504f578abb5ebd /config/application.rb | |
| parent | c81c9a77621dac58d6d2bd1eb2e4b60407371c36 (diff) | |
use a different layout for the signin page.
Diffstat (limited to 'config/application.rb')
| -rw-r--r-- | config/application.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index 4ace3525..9ff3fe63 100644 --- a/config/application.rb +++ b/config/application.rb @@ -44,5 +44,14 @@ module Cake # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + + config.to_prepare { + Devise::SessionsController.layout "users" + Devise::RegistrationsController.layout proc{ |controller| user_signed_in? ? "application" : "devise" } + Devise::ConfirmationsController.layout "devise" + Devise::UnlocksController.layout "devise" + Devise::PasswordsController.layout "devise" + } + end end |
