# Check box for terms and conditions

**URL:** <https://www.ruby-forum.com/t/check-box-for-terms-and-conditions/192530>\
**Category:** Rails\
**Created:** [August 1, 2010, 12:18pm UTC](https://www.ruby-forum.com/t/check-box-for-terms-and-conditions/192530 "2010-08-01T12:18:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![disruptivetechnolog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@disruptivetechnolog](https://www.ruby-forum.com/u/disruptivetechnolog)\
**Post date:** [August 1, 2010, 12:18pm UTC](https://www.ruby-forum.com/t/check-box-for-terms-and-conditions/192530/1 "2010-08-01T12:18:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![disruptivetechnolog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@disruptivetechnolog](https://www.ruby-forum.com/u/disruptivetechnolog)\
**Post date:** [August 2, 2010, 4:14pm UTC](https://www.ruby-forum.com/t/check-box-for-terms-and-conditions/192530/2 "2010-08-02T16:14:47Z")

</div>

On Sun, Aug 1, 2010 at 06:18, Dis T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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. 🙂 See

[http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#M001396](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](http://codosaur.us) | Work: [http://davearonson.com](http://davearonson.com)  
Leadership Blog: [http://dare2xl.com](http://dare2xl.com) | Play: [http://davearonson.net](http://davearonson.net)

- 
  - 
    - 
      - 
        - WATCH THIS SPACE \* \* \* \* \* | Ruby: [http://mars.groupsite.com](http://mars.groupsite.com)
