I have tables related as below:
class Partner < ActiveRecord::Base
# :org_name, :string
# amongst other things
class PartnerContact < ActiveRecord::Base
# :partner_id, :integer, :null => false
# :name, :string
# 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.