Displaying 1 result from an estimated 1 matches for "az_resid".
Did you mean:
asresid
2006 Feb 28
6
How To Validate Boolean Form Field
Hello all.
I''ve got the following in my model:
class Individual < ActiveRecord::Base
validates_presence_of :first_name, :last_name, :street, :city,
:state, :zip
validates_acceptance_of :AZ_resident, :message => "You must be an
Arizona resident."
end
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...