Environment
- Ruby 3.0.3p157
- Rails 7.0.4
- Devise 4.8.1
Current behavior
When a signed-in user visits destroy_user_session_path the flash message is "You need to sign in before continuing." (en.devise.failure.unauthenticated)
For reference, the link is <%= link_to 'Sign out', destroy_user_session_path, data: { turbo_method: :delete } %>
Expected behavior
When a signed-in user visits destroy_user_session_path the flash message should be "Signed out successfully."(en.devise.sessions.signed_out)
Environment
Current behavior
When a signed-in user visits
destroy_user_session_paththe flash message is "You need to sign in before continuing." (en.devise.failure.unauthenticated)For reference, the link is
<%= link_to 'Sign out', destroy_user_session_path, data: { turbo_method: :delete } %>Expected behavior
When a signed-in user visits
destroy_user_session_paththe flash message should be "Signed out successfully."(en.devise.sessions.signed_out)