title: ActiveRecord Query method: group
body: <p>I have read the Ruby docs on the query method "group", but I am having a hard time understanding how to use it.</p>
  
  <p>lets say I have a table called users, and there are the fields name, email, gender.</p>
  
  <p>I am able to type User.group(:name).count, which return a a hash with key value pairs of {name: count}. </p>
  
  <p>Why does User.group(:name) not work?</p>
  
  <p>Is there a way of grouping similar names, and accessing those records?
  ex. User.group(:name).first or User.group(:name).each</p>
  
  <p>It seems to me that I am thinking of using "group" incorrectly.</p>