# Reg: validation for has\_many relation table

**URL:** <https://www.ruby-forum.com/t/reg-validation-for-has-many-relation-table/126550>\
**Category:** Rails\
**Created:** [January 19, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/reg-validation-for-has-many-relation-table/126550 "2008-01-19T12:34:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@shiva](https://www.ruby-forum.com/u/shiva)\
**Post date:** [January 19, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/reg-validation-for-has-many-relation-table/126550/1 "2008-01-19T12:34:33Z")

</div>

Hi,  
I am facing one problem in validation…I have two tables articles and  
user both are has\_many relation …so joint table has article\_id  
,user\_id , read\_at and rating

In front end there is two check box for read\_at and rating

so at the time of saving article i want to validate either one of the  
check box should be checked.so where should place the validation…

please help me

with regards,  
shiva
