search for: v_p_o

Displaying 2 results from an estimated 2 matches for "v_p_o".

Did you mean: v_p_do
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
2009 Jan 12
2
validates_presence_of fails with false boolean
This almost feels like a bug to me, since false is not nil. (i don''t think!) Using v_p_o on a boolean field fails validation if the field is passed with ''false''. It passes validation in the case of true. How can I validate _presence_of a boolean if it is submitted false? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----...