Is there a more modern way to do something like:

distinct_items = Item.find( :all, :select => 'DISTINCT fieldname' )

I have found a number of circa 2007 web pages that all recommend the
use of :select, and I can't find a :distinct option for #find, but I
figured I'd ask.

--wpd

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