I don\'t know if I\'m just looking in the wrong places here or what, but does active record have a method for retrieving a random object?
Something like?
<
Try using Array's sample method:
@user = User.all.sample(1)