I’m having trouble with a piece of code based on an example someone
kindly posted here:
errors.add(‘surname’, “must be blank when the serial number is known”)
if !surname.nil?|| !surname==""
Now, even if surname is empty, it still flags the error message. I
imagine I’m doing something rather obviously wrong but I’m not sure what
Thanks in advance!