You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How To: Redirect with locale after authentication failure
Note: this differs from the Rails Internationalization (I18n) API Guide, but is required by the implementation of the Devise FailureApp (it calls ApplicationController.default_url_options(*args) in its default_url_options method).
Without this change, and if your routes are setup to require a locale, you will see errors like this on authentication failure:
ActionController::UrlGenerationError (No route matches {:action=>"new", :controller=>"devise/sessions"} missing required keys: [:locale])