I have to choose 6 records from the table but randomly.
I have written the code:
@products = Product.find(:all, :conditions => “feature = 1”, :limit =>
But it fetches only the first six records from the table. I want to
choose only 6 products but in random order not the first six.
Please tell me how to implement it.
Any help would be greatly appreciated.