Displaying 1 result from an estimated 1 matches for "agree_to_term".
Did you mean:
agree_to_terms
2006 Apr 07
0
validates_acceptance_of problem
I''m having some difficulties getting validates_acceptance_of to work.
No matter whether I tick the checkbox for my terms and conditions on
my form, it will not submit it and shows my error message.
in my model i have:
validates_acceptance_of :agree_to_terms, :message => ""
in my view i have:
<%= error_message_on :user, :agree_to_terms, "You must agree to the
terms and conditions" %>
<label for="agree_to_terms" class="left">I agree to the <a
href="/terms">terms and conditions&l...