Hi,
Could you please explain the :limit to me? I thought I knew what it was
but now it seems I've misunderstood something.
>> Fooditem.find_by_contents("*quark*", {:limit => 10}, {:conditions =>
>> ["origin = ?", "fda"]}).length
=> 1
>> Fooditem.find_by_contents("*quark*", {:limit => 2000000}, {:conditions =>
>> ["origin = ?", "fda"]}).length
=> 8
So is limit actually limiting the results before conditions?
Regards,
Antti
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk