I would like to do this:

Greeter.find(:all, :select => "DISTINCT user_id", :include => [:user],
:joins => [:user], :order => "users.nickname")

But an error is always thrown,  I either do the join so that I go
order on the join table... which I have to do... or I do eager loading
which helps out a lot with the efficiency of the page load time... but
I can not do both it seems... or can I?


-- 
John Kopanas
[email protected]

Blog: http://www.kopanas.com
Conference: http://www.cusec.net
Twits: http://www.twitter.com/kopanas

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to