search for: event_sites

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

Did you mean: event_dates
2011 Aug 09
2
junction table question
...Here''s a description of my models and what I need in my controller: Models 1. Event 2. Site 3. Participant Relationships: 1. An event can have multiple sites (example video conferencing) 2. A site can have multiple events 3. Participant goes to an event at a location Database Tables: 1. event_sites (:id, :event_id, :site_id) 2. participants (:id, :event_site_id, ...) And in my participant controller, I need to get the sites available for a particular event the participant is signing up for (new action). Any thoughts on how I can get that data from the junction table, or a better approach in...