title: Sum and Group by in Rails
body: <p>I have a table defined as such:</p>
  
  <pre><code>Name - Order# - Widget Count
  Bob  - 12311  - 6
  Nancy- 12555  - 8
  BoB  - 87573  - 12
  Nancy- 12929  - 4
  </code></pre>
  
  <p>I'd like to retrieve them as such:</p>
  
  <pre><code>Bob - 18
  Nancy - 12
  </code></pre>
  
  <p>Ie: A sum of their widget counts, ordered by name. I know how to go about this in SQL server/etc, but I'm not sure what the best practice is in Rails. Any help would be much appreciated!</p>