Displaying 1 result from an estimated 1 matches for "tuxwerk".
Did you mean:
tuerk
2006 Aug 06
1
Sorting through relationships
Hi,
I''m having a rather annoying problem which can only be explained with
an example, so here we go.
I have a Person class which has_many :assets. An Asset has_one :game.
I would like every Person''s asset to be sorted by its game''s title,
similar to this:
has_many :assets, :order => ''game.title''
That doesn''t seem to work. A