title: Using group_by in rails/ruby
body: <p>Here is my array:</p>
  
  <pre><code>finalcount = Vote.where(:month =&gt; month, :year =&gt; year, :vote_id =&gt; vote.id).count
  </code></pre>
  
  <p>I'd like to use <code>group_by</code> (I think?) to group the votes by <code>user_id</code> (which each vote has), and then return the <code>user_id</code> with the highest votes.</p>
  
  <p>Any ideas how I can do this?</p>