Harold wrote:
> orders = Order.find(:all, :conditions => '...', :include
> => :payee, :order => 'payees.last_name')


Awesome.  The ":include" option wasn't something I was aware you could 
use in a find for the model.  I knew this could be handled using a nice 
rails-like convention without having to code some convoluted sorting 
method.

That makes life much easier.  Thank you very much!
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to