I am trying to install the jQuery UI Datepicker for my Rails application based on: https://github.com/joliss/jquery-ui-rails, as well as the Revised Railscast on this topic and countless threads trying to get this working. No matter what I try it does not seem to work.
application.js
//= require jquery
//= require jquery_ujs
//= require jquery.ui.datepicker
//= require_tree .
//= require tinymce-jquery
application.css
*= require jquery.ui.datepicker
*= require_self
*= require_tree .
new.html.erb
<%= f.label :due_date %>
<%= f.text_field :due_date %>
modelname.js.coffee
jQuery ->
$('#modelname_due_date').datepicker (dateFormat: 'dd-mm-yy')
This seems to be all I need to make this work, however I have tried many variations to no avail. There are no errors thrown to the console when debugging in Chrome. Any help is appreciated.