title: rails and jquery datetimepicker
body: <p>Using <a href="http://trentrichardson.com/examples/timepicker/" rel="nofollow">http://trentrichardson.com/examples/timepicker/</a> for editing date time fields.  When I click the input field, the date time picker opens correctly.  The date is selected, but the time is not.  Time is always 00:00.  How can I pass the time from the input field to the datetimepicker?</p>
  
  <p>Standard form_for</p>
  
  <pre><code>&lt;%= f.text_field :closed_date, :class =&gt; "created-at-datetime" %&gt;
  </code></pre>
  
  <p>and application.js</p>
  
  <pre><code>$('.created-at-datetime').datetimepicker({dateFormat: 'yy-mm-dd ', timeFormat: 'hh:mm:ss ', ampm: false});
  </code></pre>
  
  <p>Renders something like this:</p>
  
  <pre><code>&lt;input class="created-at-datetime" id="order_closed_date" name="order[closed_date]" size="30" type="text" value="2011-04-06 21:47:12.985379" /&gt;
  </code></pre>