Query date range in Mongoid 5.1
<p>How do you query a date range using Mongoid 5.1? I'm trying something like</p>

<pre><code>Data.find(sid: 7, :created_at =&gt; (Time.parse('5-07-2015')..Time.now ))
</code></pre>

<p>but that gives me an error</p>

<p>Any ideas?</p>