I got a problem to translate the default validation messages in mongoid.
I create a /config/initializers/mongoid.rb with
- Mongoid.add_language("de")
http://mongoid.org/docs/installation/languages.html
But every call on a validated field i got translation errors:
- translation missing: de.mongoid.errors.models.comment.attributes.body.too_short
- translation missing: de.mongoid.errors.models.user.attributes.username.blank
I have
- Ruy on Rails 3.2
- Ruby 1.9.3
- mongoid 2.4.7