Rails 2.3.2 way to do "Item.find( :all, :select => 'DISTINCT fieldname' )"

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.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs