- 1
- 2
- 3
- 4
- 5
- 6
<%products = Array.new
count = Product.count(:conditions => "novelty = 'true'")
while products.size < 10 do
products << Product.find(:first, :conditions => "novelty = 'true'",:offset => rand(count))
products.uniq!
end-%>
че, логи девственно чисты???