I have a price field in my db, :decimal, :null => false, :default =>
When I open a new form field to create a new record, this value is
displayed as “0.0”. This is not so pretty for a field in which a
price like “123.45” is expected. Ideally I would like to have the
field blank (I’ll validate for numeric at submit time). I’m aware of
the format_as_currency helper, but I am not sure how/if I would use it
in a form context.
Bonus question: I am currently validating acceptable characters in a
comma). Is there anything that comes for free that I have missed, or
a good plugin out there to help with what I would think is a fairly
common use case?
Obviously, I’m a rails noob
Regards, and thanks!