From: Tahura Chaudhry Date: 2008-06-14T06:32:23+09:00 Subject: Re: validate a select (boolean) Oscar Del ben wrote: > You can also use validates_presence_of, that will check for the empty > field > > 2008/6/13, Oscar Del Ben : If I use validate_presence_of then it the field is only considered valid if 'Yes' (true) is selected. Selecting 'No' (false) results in validation error. After some reading this is what I found which is why I chose to use validate_presence_of: "If you want to validate the presence of a boolean field (where the real values are true and false), you will want to use validates_inclusion_of :field_name, :in => [true, false] This is due to the way Object#blank? handles boolean values. false.blank? # => true" -- Posted via http://www.ruby-forum.com/.