Displaying 1 result from an estimated 1 matches for "classes_stud".
2007 Mar 29
2
has_many :through with :order?
Let''s say I have
class Student < ActiveRecord::Base
  has_many :classes_students
  has_many :classes, :through => :classes_students
end
I want the list of classes for each student to be sorted by the class
title.
I could get an array containing the classes and then sort it.  But, I
would like for the database to do the work.
Is there some combination of :include and :o...