[Rails] Re: Re: How To Validate Boolean Form Field

Matthew Feadler matthew at feadler.com
Wed Mar 1 22:20:26 GMT 2006


Nithin Reddy wrote:
> To be able to validate a field, it must be present.

Adding :AZ_resident to validates_presence_of throws a validation 
exception no matter whether True or False is selected.  It's acting as 
if there's no value in the field.

Is this normal behavior for a Boolean form field?

Thanks,

-ELf


-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list