I'm using Rails 3.2 and the jQuery datepicker.
Problem is I can't get any of the formatting/customisations to work.
My code in posts.js.coffee:
jQuery ->
$('#post_date').datepicker()
dateFormat: "dd/mm/yy"
minDate: "1w"
If I test it at http://jsfiddle.net/y2wgK/ everything works fine. I tried plain Java script as well. Same thing happens. Rails ignores everything except the date picker.In other words, the datepicker works fine, but for every utility function like maxdate, mindate, dateFormat nothing happens.
Please tell me what am I missing?