Override Clearance views and layouts
mainTo customize the look and feel of authentication pages:
- Views: Copy the default views to your application using
rails generate clearance:views, then modify them in yourapp/viewsdirectory. - Layouts: Specify custom layouts for Clearance controllers in
config/application.rbusingconfig.to_prepare.
# In config/application.rb
config.to_prepare do
Clearance::PasswordsController.layout "my_passwords_layout"
Clearance::SessionsController.layout "my_sessions_layout"
Clearance::UsersController.layout "my_admin_layout"
end