Random, Previous and Next entries from Active Record models using offset
Finding a random active record entry can be a tricky task and many of the solutions out there come with considerable performance hits. This quick blog post shows a couple of options and how to make use of the offset option, something quite often ignored by rails developers.
Post a comment