- 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-%>
Lure Of Chaos 14.09.2011 09:17 # 0
че, логи девственно чисты???
roman-kashitsyn 14.09.2011 09:22 # 0
tir 14.09.2011 09:25 # 0
roman-kashitsyn 14.09.2011 09:34 # 0
Lure Of Chaos 14.09.2011 09:36 # 0
roman-kashitsyn 14.09.2011 09:41 # 0
Lure Of Chaos 14.09.2011 09:43 # 0
roman-kashitsyn 14.09.2011 10:06 # 0
TarasB 14.09.2011 15:23 # 0
Lure Of Chaos 14.09.2011 18:09 # 0
gegMOPO4 14.09.2011 18:25 # 0
Lure Of Chaos 14.09.2011 18:27 # 0
tir 14.09.2011 09:22 # 0
malleus 14.09.2011 12:12 # 0