ok so i am trying to order the results by the total size in a desc
order, here is what i have so far and its not working
def show @reports = Report.find(:all, :group => ‘user_id’, :order =>
‘user_id.size desc’ )
end
anybody know how to go about doing this
Hi, it seems that you’re trying to access an attribute of a User table
called size and
this isn’t possible with the above. Thus, you’ll need to do something
like
the following: