Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Devise Error : I18n::MissingInterpolationArgument at /users/sign_in for invalid user name and password

I Have a Devise model(User). When I log in with a valid email and password then everything is working fine. but when the email or password is wrongly entered, instead of redirecting to the Devise login page with devise default error, I am getting a different error message

I18n::MissingInterpolationArgument at /users/sign_in
missing interpolation argument :authentication_keys in "Invalid %{authentication_keys} or password." ({:resource_name=>:user} given)

I don't know how to fix this. can someone help me with this?

like image 935
John Avatar asked Sep 18 '25 18:09

John


1 Answers

Although Opeyemi Akinwoleola's hack works, a better solution is to update to a more recent version of the devise gem (see also my response to this post: Devise login error for invalid email or password is not working in rails)

like image 84
Willem Dehaes Avatar answered Sep 22 '25 19:09

Willem Dehaes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!