title: How to pass date value from calendar to controller in rails
body: <p>I am working on a task issue report project. I have a calendar, when I click select date, I couldn't pass date value in to controller in Redmine. I am using Bootstrap datepicker. </p>
  
  
  
  <pre><code>&lt;div id="datepicker"&gt;
    &lt;input type="text" data-provide='datepicker' : hidden="true"&gt;
    &lt;input type="text" class='datepicker' name="reportdate" onchange = "this.form.submit();"
  &lt;/div&gt;
  </code></pre>
  
  
  
  <pre><code>$(document).ready(function () {
    $('.datepicker').datepicker();
  });
  </code></pre>