datamapper/dm-core — Issue #192: Unable to update Decimal property from web form
Author: duien
Created: 2012-03-05 21:08:40+00:00
State: open

I can't seem to find any way to successfully set a decimal field to no value from a form, since the form is returning an empty string. To make matters worse, the record claims to be valid (when I have dm-validations included) and reports no errors, but fails to save. Here are three different test cases, with and without dm-validations:

https://gist.github.com/ace57cca599769a5152f

It seems as if I must be missing something, because being able to update a numeric field from a web form seems like a fairly basic use case.

I'm using 1.2.0 of all the dm gems I'm requiring.