validates_url: I18n problem: doesn't find error messages
I’m not presented with the expected error messages. Instead:
Or:
I then tried this as a workaround:
validates :url, url: {allow_blank: true, message: I18n.t('errors.messages.url')}
But this results in this:
I have restarted the server, etc.
I’m on Rails 4.2, is this maybe the problem?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 16 (8 by maintainers)
I believe it’s really this issue because everyone said their application is an a locale that’s neither
en
,tr
orja
. Possibly the translation is missing for them because 1.0.2 (currently the latest) on RubyGems does not contain translations forde
,fr
andpt-BR
.de
de
fr
pt-BR
(I forgot to mention)There are translations for these locales on the
master
branch, but not on 1.0.2 at RubyGems.