Find Random plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://pub.svn.greenriver.org/find_random
Example
# select 5 random items that match the :conditions @items = Item.random(5, :conditions => ["col1 = ? or col2 = ?", val1, val2]) # select any 5 random items @items = Item.random(5)
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: Guest, over 2 years ago


