search for: validates_xxx_of

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

Did you mean: validates_xx_of
2006 Jul 18
2
Using :if with validates_xxx_of
I''m trying to make my validation conditional using the :if construct. If I want to just test for the existence of the field EMAIL, it seems like I could just do: :if => ''! EMAIL.nil?'' or do I have to use a proc? And if I use a proc - what gets passed into the block - I assume the currently validating field - is that right? Thanks, Wes -- Posted via