title: Rails ActiveRecord date between
body: <p>I need to query comments made in one day. The field is part of the standard timestamps, is <code>created_at</code>. The selected date is coming from a <code>date_select</code>.</p>
  
  <p>How can I use <code>ActiveRecord</code> to do that?</p>
  
  <p>I need something like:</p>
  
  <pre><code>"SELECT * FROM comments WHERE created_at BETWEEN '2010-02-03 00:00:00' AND '2010-02-03 23:59:59'"
  </code></pre>