I’ve got the following in my model:
class Individual < ActiveRecord::Base
validates_presence_of :first_name, :last_name, :street, :city,
validates_acceptance_of :AZ_resident, :message => “You must be an
The AZ_resident field is present and defined as boolean (PostgreSQL
8.1), but validation will not occur. I’ve tried adding :accept => “TRUE”
and variations on the theme, to no avail.
So, what am I doing wrong? How do I validate a boolean form field? It
may be of use to know that my view is standard scaffold-generated stuff
at the moment.