bcardarella/client_side_validations — Issue #225: Application Defined Messages Not Being Used
Author: gyarra
Created: 2011-11-21 20:39:57+00:00
State: open

Hi,

I'm using Rails 3.0.5 and client_side_validations 3.0.5. I'm seeing the default Rails error message displayed instead of my custom error messages.

Code:
'''ruby
validates :address1, :length => {:minimum => 5, :message => "Address must be at least 5 characters"}
'''

When the address1 field fails this validation, the default message "is too short..." displays. If I submit anyway, when the page reloads with errors, the error I specified is correctly displayed. But as soon as I modify the field and validation fails again, the default error is again rendered.

Please let me know if this is expected behavior. If not I'll dig deeper.

Thanks,
Gabe