Alpha Blue wrote:
> Solved it on my own. :)
> 
> test[0].tsrs[0]
> 
> .. instead of .. test[0].tsrs_ratings.tsrs[0]

In case someone views this with a similar issue at hand, the final fix 
was listed somewhat incorrectly.

It was supposed to read test[0].tsrs and not test[0].tsrs[0]

You can also do:


:select => "teams.name, tsrs_ratings.tsrs AS newname, 
rushing_offenses.ydspg AS anothernewname"

and then access it via, test[0].newname and test[0].anothernewname and 
since I had so many stats this worked out best.

By using such a large query and only performing one, it makes it a lot 
easier on my database.

Fyi..

-- 
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