search for: otherfieldnam

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

Did you mean: otherfieldname
2006 Jun 12
2
conditional validation
Hi how can I validate a field only if another field is set to a specific value? I tried to use validates_length_of :fieldname, :maximum => 100, :if => :otherfieldname == ''myvalue'' But doesn''t work Thanks Paolo