Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I override 'Email has already been taken'?

I would like to replace this error message with something more instructive, to help the user understand what to do next. Unfortunately I can't seem to find this anywhere in my source; where is it coming from and how can I amend it?

like image 344
cjm2671 Avatar asked Dec 15 '11 14:12

cjm2671


1 Answers

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

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

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

like image 198
Benoit Garret Avatar answered Sep 22 '22 17:09

Benoit Garret