I would like to create a custom message that shows to the user whenever they're trying to register with the email address that is already used. I would like the text to say "Provided email address is already used". I'm passing it to my en.yml file as follows:
active_record:
models:
user:
attributes:
email:
taken: "Provided %{attribute} address is already used
The problem is, that this results in automatic interpolation of email attribute at the beginning of the text, so I'm ending up with "Email Provided Email address is already used". Is there a way to:
- Remove automatic attribute interpolation?
- Lowercase attribute name?