So your doing a find on your model and you want a random instance. I didn’t find a method to do this so I decided to make my own.
In this case I wanted a random quote. So after generating the model all I had to do was:
def self.random Quote.find_by_id rand(Quote.count) + 1 end
And now you can simply call your random quotes in any controller action you desire. Just
@rquote = Quote.random
If this is the lamest ruby ever please feel free to give me some feedback :) I will be delighted to learn a different way!