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 possible solution is to fall back to
SQL. However, I’m wondering whether there is a ‘native’, no-SQL
ActiveRecord way to do this.