-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
Mongoid sets a default :blank error message in it's locale file. This is confusing when trying to override error messages within your own app as every overriden message will work except :blank
I added an error message to config/locales/en.yml
en:
errors:
messages:
blank: 'please complete'
This works for other all the other validation messages apart from :blank as Mongoid supplies it's own default.
I think Mongoid should use the ActiveModel default. This will save confusion for others when overriding error messages.
What do you think?