So, I have the following scope in my Photo model:
scope :best, order(:average_rating.desc)
The only problem is, the ratings were added to t
I know this was awhile ago but wouldn't this work across a few
order("ISNULL(average_rating) DESC")