# NOTE: This is a workaround to get Devise working with Turbo class TurboFailureApp < Devise::FailureApp def respond if request_format == :turbo_stream redirect else super end end def skip_format? %w[html turbo_stream */*].include? request_format.to_s end end