Displaying 1 result from an estimated 1 matches for "ease_to_impl".
2006 May 22
2
Weirdness with validates_presence_of
Hi,
I have a call to validates_presence_of in my model and it is behaving very
strangely
my first stab when this happened during testing was
validates_presence_of :impact, :ease_to_implement if Proc.new { |record|
!record.cost_estimate.nil? }
I have three values in my model that I care about with this one. Basically
what I''m trying to get to happen is
if one is there they all must be there. (there are a couple more of these
validates_presence_of with the orders swapped...