title: Creating a custom DateTime field for a RoR form
body: <p>I'm trying to implement a custom DateTime field with three text fields (One linked to a JS datepicker and two others for the hours and the minutes)</p>
  
  <p>I want the fields to be connected if possible.</p>
  
  <pre><code>&lt;%= f.text_field :date_time, :class =&gt; "datepicker" %&gt;&lt;br /&gt;
  &lt;%= f.text_field :date_time["hours"] %&gt;
  &lt;%= f.text_field :date_time["minutes"] %&gt;
  </code></pre>
  
  <p>Can it ever work or must I do all the processing when instantiating the object ?</p>
  
  <p>Thanks in advance</p>