Return to Snippet

Revision: 19274
at February 12, 2010 15:58 by almazom


Updated Code
@distinctlist = Item.find.all.map{ |i| i.fieldname }.uniq

Revision: 19273
at October 20, 2009 07:05 by almazom


Initial Code
@distinctlist = Item.find(:all).map{ |i| i.fieldname }.uniq

Initial URL
http://www.geekskillz.com/articles/11

Initial Description

                                

Initial Title
DISTINCT in Rails

Initial Tags
sql

Initial Language
Rails