Finding unique values in a column

Is there a way in Rails to find all the unique values in a column? I
was hoping to find something like Item.find(:unique => “colname”) but
didn’t. Is there a way, short of writing ugly raw SQL to do this in
Rails?

Thanks,
Bill

Item.find(:all, :group => “colname”)

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