My fields are: tax rate and tax amount in which I want to validate positive values.
tax rate
tax amount
I wrote this validation:
:format => { :w
you could use validates_numericality_of :amount, :greater_than => 0.0
validates_numericality_of :amount, :greater_than => 0.0