On my login form I want to display one simple error message like "Sorry, email or password is invalid" whenever user enters invalid email and / or password; instead of standard fancy message with heading and unordered list.
On my login form I want to display one simple error message like Sorry,
Share
This work for you
Remove the:
<%= f.error_messages %>If your user_session object does more specific validation you can make the
ifstatement more specific.