validates_url: I18n problem: doesn't find error messages

I’m not presented with the expected error messages. Instead:

image

Or:

image

I then tried this as a workaround:

validates :url, url: {allow_blank: true, message: I18n.t('errors.messages.url')}

But this results in this:

image

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)

Most upvoted comments

I believe it’s really this issue because everyone said their application is an a locale that’s neither en, tr or ja. Possibly the translation is missing for them because 1.0.2 (currently the latest) on RubyGems does not contain translations for de, fr and pt-BR.

  • jmuheim: de
  • marcelotto: de
  • Arpsara: fr
  • jmosouza: pt-BR (I forgot to mention)

There are translations for these locales on the master branch, but not on 1.0.2 at RubyGems.