Set this in application_controller.rb:
def after_sign_out_path_for scope
root_path
end
You expect the logout to redirect the user to root.
However Devise returns a redirect with status 302, which does not work with Turbo.
All redirects must return 303 (i.e. status: :see_other) in order to work with Turbo.
This should be fixed in Devise in order to work with Rails 7.
Related: rails/rails#44170
Set this in
application_controller.rb:You expect the logout to redirect the user to root.
However Devise returns a redirect with status 302, which does not work with Turbo.
All redirects must return 303 (i.e.
status: :see_other) in order to work with Turbo.This should be fixed in Devise in order to work with Rails 7.
Related: rails/rails#44170