# Has\_many :through question

**URL:** <https://www.ruby-forum.com/t/has-many-through-question/165543>\
**Category:** Rails\
**Created:** [April 15, 2009, 2:19am UTC](https://www.ruby-forum.com/t/has-many-through-question/165543 "2009-04-15T02:19:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [April 15, 2009, 2:19am UTC](https://www.ruby-forum.com/t/has-many-through-question/165543/1 "2009-04-15T02:19:17Z")

</div>

I have 3 models

Circuit  
has\_many :alarms  
has\_many :dacsports, :through =\> :alarms

Alarm  
belongs\_to :circuit  
belongs\_to :dacsport

Dacsport  
has\_many :alarms  
has\_many :circuits, :through =\> :alarms

I have the circuit -\> dacsport relationship going.

How do I correlate the alarm data to either the circuit or the  
dacsport?
