title: How to group by multiple attributes on children, and then count?
body: <p>In a Rails 3.2 app I have a User model that has many Awards.</p>
  
  <p>The Award class has :type, :level and :image attributes.</p>
  
  <p>On a User's show page I want to show their Awards, but with some criteria. User.awards should be grouped by both type and level, and for each type-level combination I want to display its image, and a count of the awards.</p>
  
  <p>I'm struggling to construct the queries and views to achieve this (and to explain this clearly). </p>
  
  <p>How can I group on two attributes of a child record, and then display both a count and attribute (i.e. image) of those children?</p>