Adding some shorter useful information to this question:

Schedules table contains the following:

team_id
name
date_scheduled
opponent
location

Teams table contains the following:

id
name

If I make a call to the schedule model I want to retrieve:

(OK) team.name
(OK) schedule.date_scheduled
(OK) schedule.opponent
(OK) schedule.location

(NOTOK) schedule.opponent.team_id

If I run a basic query I'm really only retrieving the following:

1 team_id belonging to team.name
12 date_scheduled returns
12 opponent returns
12 location returns

I need to find the team_id for all 12 opponents that were pulled from 
the basic query.  This is what I need to figure out how to do..





-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to