title: Using Bootstrap DatePicker in Rails scaffold form
body: <p>I've got an auto-generated form from a scaffold model, and in the new.html.erb I can't add the DatePicker option to my date field (<strong>effective-date</strong>). Scaffold doesn't generate the form fields; it has just:</p>
  
  <p>app/view/documents/new.html.erb:</p>
  
  <pre><code>&lt;div class="row"&gt;
    &lt;div class="col-md-6 col-md-offset-3"&gt;
      &lt;%= render 'form', document: @document %&gt;
          ** no fields here to customize **
      &lt;/div&gt;
      &lt;input type="text" id="TestDate" data-provide='datepicker' &gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>create_table "documents", force: true do |t|
      t.string    "docname"
      t.string    "description"
      t.string    "doctype"
      t.boolean   "renewal"
      t.date      "effective_date"
      t.date      "expiration_date"
      t.timestamp "created_at"
      t.timestamp "updated_at"
    end
  </code></pre>
  
  <p>TestDate does work.</p>
  
  <p>Thanks in advance!</p>