How to override "Email has already been accepted"?

I would like to replace this error message with something more instructive to help the user understand what to do next. Unfortunately, I can not find it anywhere in my source; where does it come from and how can I change it?

+3
source share
1 answer

Find config/locales/YOUR_LOCALE.yml and set the following key:

 errors: messages: taken: "has already been taken" 

You can find the translated files for several languages ​​here: https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale

+4
source

Source: https://habr.com/ru/post/949134/


All Articles