Rails: validates_acceptance_of acting crazy
Posted
by Sleepycat
on Stack Overflow
See other posts from Stack Overflow
or by Sleepycat
Published on 2010-04-15T04:02:00Z
Indexed on
2010/04/15
4:03 UTC
Read the original article
Hit count: 236
ruby-on-rails
|val
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?
© Stack Overflow or respective owner