I\'m trying to use a different/custom layout named \"devise\" for the sign_in action. I found this page in the devise wiki, and the second example even says you can do it pe
Surprised to not see this answer anywhere, but you can also do this:
In routes.rb, change your devise config to look something like this:
devise_for :users, controllers: {
sessions: 'sessions'
}
Then in app/controllers/sessions_controller.rb
class SessionsController < Devise::SessionsController
layout 'devise', only: [:new]
end
This is especially useful if you need to do additional logic overrides in any of the Devise controllers.