search for: teamconfigs

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

2005 Nov 09
0
Sorting has_many relationships
...foosball players who play in bars in Zurich, Switzerland ;-) Being a bit of a noob when it comes to rails and web development in general, I''ve come across a few questions. One concerns sorting of a has_many relationship, for instance. I''ve got a League model, which has_many TeamConfigs which in turn belongs_to a Team object. A TeamConfig is basically the representation of a Team for one season, so the name of the team is an attribute of the Team model. What I''d like to do is something like this: class league has_many :team_configs, :order => ''team.na...