In my en.yml translation file, I have:
activerecord: errors: template: header: one: "1 error prohibited this {{model}} from being saved" other: "{{count}} errors prohibited this {{model}} from being saved"
When an activerecord / validation error occurs in my application during registration, an error message appears:
"1 error prevented the saving of this user session"
Is displayed
(where the user_session model is used). I would rather he say something like
"An error occurred preventing you from logging into your account."
How to override general error message with my specific?
override ruby-on-rails activerecord internationalization
David smith
source share