# Need one decent example of has\_many/through with checkboxes

**URL:** <https://www.ruby-forum.com/t/need-one-decent-example-of-has-many-through-with-checkboxes/69988>\
**Category:** Rails\
**Created:** [September 26, 2006, 5:55am UTC](https://www.ruby-forum.com/t/need-one-decent-example-of-has-many-through-with-checkboxes/69988 "2006-09-26T05:55:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ce73a5/32.png) [@tim](https://www.ruby-forum.com/u/tim)\
**Post date:** [September 26, 2006, 5:55am UTC](https://www.ruby-forum.com/t/need-one-decent-example-of-has-many-through-with-checkboxes/69988/1 "2006-09-26T05:55:15Z")

</div>

I’m looking for one decent example showing  
three associated tables in a  
has\_many / through configuration  
where checkboxes show the status of the  
association, and can be used to  
select/deselect the association.

Has such an example been published?  
Not the “habtm” examples, please.

A many-to-many relatonship something like (for example):  
Actors \<—\> Roles \<—\> Stageplays

Each actor can be in many stageplays.  
Each stageplay has many actors.  
And the “Roles” table can have extra info like dates, awards, etc.

I’m looking for any “published” solution for  
“has\_many through” relationships. Where modifying the status of a  
“has\_many through” relationship (e.g., unchecking a checkbox) in the  
“view” ripples consistently through the view, the database, and all  
other associated views…

Does such a solution exist?
