Rails: validates_acceptance_of acting crazy
- by Sleepycat
Whats wrong with this picture?
Model:
validates_acceptance_of :terms_of_service, :on => :create, :accept => true, :allow_nil => false
accessor :terms_of_service
View:
<%= check_box :organisation,'terms_of_service', {:style => "margin-left:0px"}, 1, 0 %>
And in the DB I have organisations.terms_of_service.
Every time I get "Terms of service must be accepted"
Any ideas?