title: Rails 3 jquery date picker date not saving to database
body: <p>When I submit my form I can see the date being sent to in the post.  However, It doesn't save the date.  If I do a date check it says it is not in the proper format.  Here is my date picker function, it displays fine:</p>
  
  <pre><code>    $j(function(){
      $j("#mile_date").datepicker();
  });
  </code></pre>
  
  <p>the $j is because I am using prototype as well so all jquery calls are using the the noconflict variable.</p>
  
  <p>Here is the post:</p>
  
  <pre><code> Parameters: {"utf8"=&gt;"Γ£ô", "authenticity_token"=&gt;"Fj4HW/B4EOan/vcPZLJ75TvWkRH4ZKSFsPLlQLSD0cI=", "mile"=&gt;{"odometer"=&gt;"", "trip"=&gt;"428.2
  ", "gallons"=&gt;"24.959", "note"=&gt;"", "temperature"=&gt;"", "date"=&gt;"06/22/2011"}, "commit"=&gt;"Create Mile"}
  </code></pre>
  
  <p>So it sends the date fine but rails doesn't seem to like the format.  It inserts a null value into the database.  If I submit it with the default datefield with the drop downs it sends this and saves fine:</p>
  
  <pre><code>    Parameters: {"utf8"=&gt;"Γ£ô", "authenticity_token"=&gt;"Fj4HW/B4EOan/vcPZLJ75TvWkRH4ZKSFsPLlQLSD0cI=", "mile"=&gt;{"odometer"=&gt;"", "trip"=&gt;"428.2
  ", "gallons"=&gt;"24.959", "mpg"=&gt;"17.156136063144", "note"=&gt;"", "temperature"=&gt;"", "date(1i)"=&gt;"2011", "date(2i)"=&gt;"6", "date(3i)"=&gt;"22"}, "c
  ommit"=&gt;"Create Mile"}
  </code></pre>
  
  <p>In the insert statement it inserts the date as:<code>'2011-06-22'</code></p>
  
  <p>Does Rails expect the date in 3 variables to construct the date format correctly?  How can I get the datepicker to send the correct date format?</p>
  
  <p>Thank you in advance,</p>