title: best_in_place datepicker not working (setting default format)
body: <p>I can't change the default format of my datepicker. Maybe that's why best_in_place doesn't work because rails only accepts <code>yyyy-mm-dd</code> format.</p>
  
  <p>Currently, the datepicker shows but I can't save because of the format.</p>
  
  <p>Am I doing something wrong in the .js file? </p>
  
  <p>application.js</p>
  
  <pre><code>//= require jquery
  //= require jquery-ui
  //= require best_in_place
  //= require best_in_place.jquery-ui
  </code></pre>
  
  <p>project.js</p>
  
  <pre><code>var ready;
  ready = function () {
  
      $.datepicker.setDefaults({
          dateFormat: 'yy-mm-dd'
      });
  
      /* Activating Best In Place */
      jQuery(".best_in_place").best_in_place();
  }
  </code></pre>
  
  <p>view</p>
  
  <pre><code>&lt;td&gt;&lt;%= best_in_place @project, :podate, as: :date %&gt;&lt;/td&gt;
  </code></pre>