search for: convention_workshops

Displaying 1 result from an estimated 1 matches for "convention_workshops".

2006 May 27
7
How should I select rows from a join-model based on more than one association?
...more than one convention. Also each workshop has a host, who is specific to a workshop being held in a specific convention. For example, Matz may host an "Introduction to Ruby" workshop in RubyConf. And _why may host a the same workshop in RailsConf. This operates through the join-model convention_workshops, which has the following rows: convention_id, workshop_id, host_id, start_time. It belongs_to :convention, :workshop, and :host. Associations make it very easy to select by one association. If I want to get the start_time of all workshops held on RubyConf Matz, I just find RubyConf''s mode...