try adding :allow_nil => true On May 1, 10:07 am, Steven Garcia <[email protected]> wrote: > Given a model with the following field: > > property :price, Decimal, :precision => 10, :scale => 2 > > When I submit the form with a blank :price field, I get a validation error > "must be a number" > > Thing is I am not validating the presence of this field, shouldnt it only > perform that validation if the field is required??
-- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
