Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to localize error message #206

Conversation

dmitry-a-l
Copy link
Contributor

Gem users must have ability to localize error messages.
So to localize error, simply put your message in locale.yml with key
activerecord.errors.models.{{model}}.attributes.email.already_in_use

Gem users must have ability to localize error messages.
So to localize error, simply put your text in locale.yml with key
activerecord.errors.models.{{model}}.attributes.email.already_in_use
@lynndylanhurley
Copy link
Owner

Hi @lDA -thanks for the PR! This looks good to merge.

I've been meaning to refactor the error messages for better consistency (format, status codes, localization, etc.). Is this something that you would be interested in taking on?

lynndylanhurley added a commit that referenced this pull request Apr 9, 2015
@lynndylanhurley lynndylanhurley merged commit 852912c into lynndylanhurley:master Apr 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants