/ Published in: Rails
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@distinctlist = Item.find.all.map{ |i| i.fieldname }.uniq
URL: http://www.geekskillz.com/articles/11