[Rails] Re: Sorting with Associations ??

2010-11-16 Thread andyl
That did it ! Thank you very much ! On Nov 16, 11:48 am, Tim Shaffer wrote: > On Nov 16, 2:27 pm, andyl wrote: > > > Something like this: Member.order("roster.name, zip_code").all > > > But I can't get the syntax quite right - I've played around with join > > and include - can anyone tell m

[Rails] Re: Sorting with Associations ??

2010-11-16 Thread Tim Shaffer
On Nov 16, 2:27 pm, andyl wrote: > Something like this: Member.order("roster.name, zip_code").all > > But I can't get the syntax quite right - I've played around with join > and include - can anyone tell me the right syntax to use?? Remember that table names are plural. Member.joins(:roster).ord