I have tables related as below:
class Partner < ActiveRecord::Base
amongst other things
class PartnerContact < ActiveRecord::Base
:partner_id, :integer, :null => false
and other stuff
I want to do a find on PartnerContact but order on Partner as follows:
partner_contacts = PartnerContact.find(:all, :order =>
“partner.org_name, name”), which doesn’t work.
I can’t get my head around the syntax required to do this. Any help
much appreciated, thanks.