> > is it possible or will i have to reorder it with ruby code? >
Can be done like that: @study_class = StudyClass.find(:all, :include => :teacher, :order => "teachers.name ASC") (since :order takes pure SQL, it must be the table name in plural as used in the database) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

