Joined May 2011
·

Nate Bird

Founder at svvy
·
Georgia
·
·
·

Posted to Rails Quick Tips - Random Records over 1 year ago

The 'randumb" gem is a great ActiveRecord extension that provides the db agnostic calls and allows you to continue chaining other arel methods. It also scales better on large tables than just using RANDOM. Check out the source code for details.

https://github.com/spilliton/randumb

Achievements
62 Karma
0 Total ProTip Views