Hey,
The title of this question might be a bit off but its the closest I could get to what I am trying to do.
I have a Products model which has_many Comments. I am looking to come up with a way to grab the top 10 Products with the most comments. Is this possible?
At the moment I have:
Product.find(:all, :limit => 10)
This gets me my 10 products, but it obviously does not consider how many comments each product has.
Cheers
Eef