title: Can you do greater than comparison on a date in a Rails 3 search?
body: <p>I have this search in Rails 3:</p>
  
  <pre><code>Note.where(:user_id =&gt; current_user.id, :notetype =&gt; p[:note_type], :date =&gt; p[:date]).order('date ASC, created_at ASC')
  </code></pre>
  
  <p>But I need the <code>:date =&gt; p[:date]</code> condition to be equivilent to <code>:date &gt; p[:date]</code>. How can I do this? Thanks for reading.</p>