I want to validate a field in my form that's not an attribute in the model. How do I do this?
define it as a getter and setter.
Ok, I did it. But in the model I have validates_presence_of, and even though the field is filled, I keep getting the blank error.
Nevermind, getter was returning a user object instead of a string.
fixed.
Hi Mike. Can you share the code snippet for the getter and setter methods you used, thanks.