Closed dieuit07 closed 9 years ago
You can override any validation message in the locale file per attribute or with the message option key
validates_datetime :public_date, :on_or_after => :release_date, :on_or_after_message => "must be on or after %{restriction} (release date)"
We wouldn't use the symbol as anything such as a name in the message. The symbol could be any method which may not semantically represent the value to the user.
Example:
Error is not good enough for client understand :
I recommend it should be :)