adzap / validates_timeliness

Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.
MIT License
1.59k stars 227 forks source link

I18n: Difference messages for one attribute with same validation but difference condition #142

Closed luuhai closed 8 years ago

luuhai commented 8 years ago

Currently I have 2 validations for an attribute, one is :between and one is :on_or_after. Since both of them use on_or_after_message and they both need I18n, how should I setting my locale files to show difference error messages on these 2 validations?

luuhai commented 8 years ago

Oh never mind that, I've solved this using custom error messages under activerecords.errors.messages