bcardarella/client_side_validations — Issue #229: Validates numericality ignores :allow_blank on the client side
Author: gaaady
Created: 2011-12-02 09:33:07+00:00
State: open

validates :number, :numericality => { :only_integer => true, :greater_than_or_equal_to => 0}, :allow_blank => true

When using this validation and leaving the field empty I get a client side validation error.
The server side doesn't fail the validation

version 3.1.3
Rails 3.1