Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # How to give your devise controllers all the same layout (e.g. "authentication" below)
- class ApplicationController < ActionController::Base
- layout :setup_layout
- def setup_layout
- return "authentication" if
- [ConfirmationsController, PasswordsController, SessionsController,
- RegistrationsController, UnlocksController].include? self.class
- "application"
- end
- end
Add Comment
Please, Sign In to add comment