Devise custom layouts

Posted by Nelson on January 28, 2021
I generally want to separate the aesthetic of my login and registration form from the one I see for 'Edit account' once I'm a registered user. The way to do this is by editing application.rb and adding (source):

config.to_prepare do
  Devise::RegistrationsController.layout proc{ |controller| user_signed_in? ? "custom/application" : "application" }