What is the canonical way to do a simple GROUP BY using AR? I have a
column, I’d like to just get the total for a certain user into the
view. So I can do find_by_sql() and then get the first element of the
collection in the controller, that’s fine.
But it seems like the SQL stuff (assuming there is no way to do it
with just find() ) should go in the model. Since the model is in
charge of DB stuff, right? So is what is The Correct Way ™ to do