Tag : showing-invalid-credential

TIP : Showing login failure message in devise views in rails

While working with devise gem, I need to show the failure messages like “Invalid username / password” (As shown in the below image) when user enters a wrong username/password.

Invalid_Credential

I have added the flash massage to show the error as shown in below code in app/view/devise/sessions/new

Hope this helps

Categories: Ruby On Rails

%d bloggers like this: