TIP : Showing login failure message in devise views in rails
August 8, 2016
No comments
Article
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.
I have added the flash massage to show the error as shown in below code in app/view/devise/sessions/new
1 2 3 |
<%= flash[:alert]%> |
Hope this helps
Categories: Ruby On Rails