Random Order in ActiveRecord Query
Can use a SQL RANDOM
function in the Active Record order
method1.
Gif.tagged_with(params[:tag]).order('RANDOM()').first
Can use a SQL RANDOM
function in the Active Record order
method1.
Gif.tagged_with(params[:tag]).order('RANDOM()').first