Displaying 1 result from an estimated 1 matches for "874625".
Did you mean:
374625
2009 Feb 27
2
Getting unique entries from models?
I''m using acts_as_taggable_on and I want to get a list of unique
taggings. How can I do this? In a more general sense, say that I have
a Product model with attributes name and price. I have these:
id: 1
Name: Juice
Price: 5
id: 2
Name: Juice
Price: 5
So when I do a Product.find(:all) I''ll get both, but I only want one.
How can I do this so that no matter now many