search for: price_before_type_cast

Displaying 1 result from an estimated 1 matches for "price_before_type_cast".

2006 Jul 11
1
Validating composed_of
...ney/) class. I want to make sure that the price only contains a price to 2 decimal places i.e. 1.25. This is because if someone enters 1.256 then the price ends being 1.26. The standard validations that I''ve tried don''t work. validates_numericality_of complains of a lack of "price_before_type_cast". How do you validate these attributes? Many thanks, Jordan