Forum: Ruby on Rails has_many :through question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris H. (Guest)
on 2009-04-15 04:19
(Received via mailing list)
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?
This topic is locked and can not be replied to.