title: Using a client-side datetime picker in Rails 4
body: <p>Right now, I have a simple <code>&lt;%= date_select(:record, :date, ampm: false) %&gt;</code> in my view. For the past few days, I've been trying to implement a datetime viewer, and just can't grasp it. I've looked at <a href="http://amsul.ca/pickadate.js/" rel="nofollow">pickadate.js</a>, <a href="https://eonasdan.github.io/bootstrap-datetimepicker/" rel="nofollow">Bootstrap 3 Datetimepicker</a>, and others. I understand the jQuery behind them - it's simple to just apply a class to an <code>&lt;input&gt;</code> field. </p>
  
  <p>What I don't understand is how the date gets correctly passed as a part of my Rails form. For example, pickadate.js applies a class to an <code>&lt;input&gt;</code> field, but how does my <code>form_for</code> recognize what attribute it's for? When I use a <code>date_select(:record, :date)</code>, I'm telling my app that the input should be recorded in the record model as the date attribute, right? How do I do this with a client-side <code>&lt;input&gt;</code> field?</p>