search for: playerstat

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

Did you mean: player_stats
2008 Dec 13
3
how to do "special queries" ala The Rails Way on "associated" conditions?
...nt or elegant way to do things. I gleaned this most recently from the posting at (see his Case 3): http://www.therailsway.com/tags/has_many So, I would like to do something like the following, but I''m having a problem with the conditions: has_many :visitor_stats, :class_name=>"PlayerStat", :conditions=> <what???> the condition here should be something matching "player.team.team_code == self.visiting_team_code" in the code I have now. has_many :home_stats, :class_name=>"PlayerStat", :conditions=> <what???> and here it should be somet...