Finding unique values in a column


#1

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


#2

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