How do I supress the reporting of a field name in the full error
message? I want the error to be associated with the field so that the
.fieldWithErrors class is applied to the field but I don’t want it to
add the field name to the actual error message.
errors.add(“occurs_on”, “The date can’t be today!”) unless occurs_on
I would like the error to read:
The date can’t be today!
Occurs on The date can’t be today!
Is there any way to do this?
Thanks in advance