title: Group Query in Rails ActiveRecord
body: <p>I am trying to do a group by (sql query) using ActiveRecord in Rails on a table with the following structure:</p>
  
  <pre><code>id (integer)
  user_id (integer, foreign key from the users table)
  work_date (date, e.g., 2014-06-02)
  computed_hours (integer, e.g., 4)
  computed_minutes (integer, e.g., 30)
  </code></pre>
  
  <p>I want the query to return the sum of computed_hours and computed_minutes totaled for a specific user for each day of a particular month:</p>
  
  <p>So, for instance, say for, user_id = 2, I would like it to return</p>
  
  <p>2014-06-02 4.5 (computed_hours and computed_minutes totaled)
  2014-06-05 3.25 
  ......</p>
  
  <p>How could this be written in ActiveRecord assuming that the table above is called billables and that the corresponding model's name is Billable?</p>
  
  <p>Thanks in advance for your time.</p>