Where can I change the “Email has already been taken” error message?

后端 未结 1 1091
北海茫月
北海茫月 2021-01-21 03:53

I need customize the message error: Email has already been taken for email, I\'m working with Ruby 1.9.2, Rails 3.1.3, Devise 1.5.3, I tried change the message in:

相关标签:
1条回答
  • 2021-01-21 04:34

    I never used Devise, but I think the "taken" message is an ActiveRecord error message (not specific to the Devise gem). If you plan on using a non-english locale I would advice you to change the default locale instead of adding non-english content to the EN one.

    sp:
      activerecord:
        errors:
          messages:
            taken: "este %{model} ya sido utilizado"
    
    0 讨论(0)
提交回复
热议问题