Check box for terms and conditions

Is there a smart way or example for listing terms and conditions and
ensuring that they have been read?

I’m a relative noob to RonR and I’d like to find a good way to do this?
I don’t want to store anything in the db, so I just need validation, how
best to do this?

Thanks

On Sun, Aug 1, 2010 at 06:18, Dis T. [email protected] wrote:

Is there a smart way or example for listing terms and conditions and
ensuring that they have been read?

No, there never was and (within reason) never will be. There is,
however, a way to ensure that the checkbox saying they have read it
and agree to it, is checked. :slight_smile: See

http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#M001396

for the validates_acceptance_of method on ActiveRecord. It
“Encapsulates the pattern of wanting to validate the acceptance of a
terms of service check box (or similar agreement).”

-Dave


Specialization is for insects. -RAH | Have Pun, Will Babble! -me
Programming Blog: http://codosaur.us | Work: http://davearonson.com
Leadership Blog: http://dare2xl.com | Play: http://davearonson.net

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs