Different layout - janko/rodauth-rails GitHub Wiki

To use different layouts for different Rodauth views, you can compare the request path in the layout method:

# app/controllers/rodauth_controller.rb
class RodauthController < ApplicationController
  layout :rodauth_layout

  private

  def rodauth_layout
    case rodauth.current_route
    when :login, :create_account, :verify_account, :verify_account_resend,
         :reset_password, :reset_password_request
      "authentication"
    else
      "dashboard"
    end
  end
end