This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit c39cb222789479a56e664ff0b9499128adb13409
tree 406a2133fa27c5a0b2083853335eac53b5535799
parent 84a2f9d65f0f16e92f3e49e05f168545bd746085
tree 406a2133fa27c5a0b2083853335eac53b5535799
parent 84a2f9d65f0f16e92f3e49e05f168545bd746085
README
RandomFinders ============= Allows quick and easy fetching of random records, or records in random order. Simply pass the :random to the order in any finder method. Examples ======== Find a random article Article.find(:first, :order => :random) Randomize photos Photo.find(:all, :order => :random) Caveat ====== This will not treat you nicely with large datasets. Read about it here: http://daniel.collectiveidea.com/blog/tags/random_finders Based on an idea by Mike Burns http://mikeburnscoder.wordpress.com/2006/08/18/retrieving-random-elements-from-an-activerecord/ Copyright (c) 2007 Daniel Morrison, Collective Idea (http://collectiveidea.com), released under the MIT license









