-
Notifications
You must be signed in to change notification settings - Fork 0
Easily find a random Active Record model
License
mshiltonj/active_record_random_find
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
active_record_random_find ========================= Inspired by http://weblog.jamisbuck.org/2006/10/7/helping-activerecord-finders-help-you How to find a random model in the database using ActiveRecord Step 1: In your rails root, do this: ./script/plugin install git://github.com/mshiltonj/active_record_random_find Step 2: Starting finding random models: winnner = User.find :random Step 3: PROFIT!!!!!!! COPYRIGHT ========= Copyright (c) 2008 Steven Hilton. See LICENSE for details.
About
Easily find a random Active Record model
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published