title: Fetch all dates which is exists between start date and end date in rails
body: <p>What will be the conditions of the dates which will fetch all dates
     which is lies between Start date and End Date.I'm using this query
     but it is not full fill these conditions.</p>
  
  <pre><code>@festivals = @festivals.where(:event_group_start=&gt;params[:event_group_start]..(params[:event_group_end])) if (params[:event_group_start] &amp;&amp; params[:event_group_end]).present?
  </code></pre>