You could use named_scope to get more complexity. I think that's a possibility.
http://www.locomotivation.com/blog/2008/08/25/simplify-activerecord-aggregates-and-other-goodies-via-named-scope.html bingo bob escribió: > That's ideal! thanks. > > Follow up question, what if I want to override this order from time to > time, say on some occasions have the reviews sorted by their last_name > column? > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---