title: How can i put the bootstrap datepicker in my form and have the value in date parameter?
body: <p>I am using bootstrap-datepicker.js and it is working fine.</p>
  
  <pre><code>&lt;div class="well"&gt;
  &lt;div id="dp5" class="input-append date" data-date-format="dd-mm-yyyy" data-date="12-02-2012"&gt;
  &lt;input class="span2" type="dp5" readonly="" value="12-02-2012" size="16"&gt;
  &lt;span class="add-on"&gt;
  &lt;i class="icon-th"&gt;&lt;/i&gt;
  &lt;/span&gt;
  &lt;/div&gt;
  
    &lt;/div&gt;
  </code></pre>
  
  <p>I want to use it in my form in rails which is of such type</p>
  
  <pre><code>&lt;%= simple_form_for(@customer) do |f| %&gt;
    &lt;%= f.error_notification %&gt;
  
    &lt;div class="form-inputs"&gt;
      &lt;%= f.input :name %&gt;
      &lt;%= f.input :email %&gt;
      &lt;%= f.input :address %&gt;
      &lt;%= f.input :phone %&gt;
      &lt;%= f.input :Projects %&gt;
       &lt;%= f.radio_button :status, 0, :checked =&gt; true%&gt;Publish
      &lt;%= f.radio_button :status, 1 %&gt;Unpublish
      &lt;%= f.radio_button :status, 2 %&gt;Trash
  
  
    &lt;/div&gt;
  
    &lt;div class="form-actions"&gt;
      &lt;%= f.button :submit %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Here i want to put the date picker inside my form as </p>
  
  <pre><code>`&lt;%f.(datepicker)%&gt;`
  </code></pre>
  
  <p>so that when i submit my form i get the value of date in the parameter date. When i click on date in datepicker it should hide and the default date should point to the current date. my appication.js includes</p>
  
  <pre><code> $(function(){  
          $('#dp5').datepicker({
              format: 'mm-dd-yyyy'
          });
          $('#dp3').datepicker({
              format: 'mm-dd-yyyy'
          });
  
  
      });
  </code></pre>