search for: 671bf899

Displaying 1 result from an estimated 1 matches for "671bf899".

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