Posted By

almazom on 10/20/09


Tagged

sql rail


Versions (?)

DISTINCT in Rails


 / Published in: Rails
 

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

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

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: desimic on May 24, 2010

This is really bad solution to problem since database is far better at this job. Check

Posted By: desimic on May 24, 2010

http://rors.org/2010/5/23/distinct-values-in-rails

Posted By: desimic on May 24, 2010

hmm, your markdown support is not complete. another try: distinct values in rails

You need to login to post a comment.