search for: sinken

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

Did you mean: silken
2006 May 30
1
Not working validation
...ion isn''t working anymore. The validation functions are not even called. Example: class Company < ActiveRecord::Base validates_uniqueness_of :name validates_numericality_of :money validates_each :money do |record, attr, value| record.errors.add( attr, "darf nicht unter 0 sinken.") \ if value < 0.0 end # more code That''s not the only class for which the validation isn''t working anymore. I''ve tested the validation by calling save! on an invalid object and expected that an exception will be thrown. What might c...