It seems when I do:
= f.datepicker :expire, dateFormat: 'dd-mm-yy', minDate: 'new Date()'
Things work correctly (that is, I can't go lower than todays date)
However, this doesn't work:
= f.datepicker :expire, dateFormat: 'dd-mm-yy', minDate: 'new Date(1289430000000)'
This time, I shouldn't be able to go lower than "11-11-2010" but I still can.
I verified that this should work by using the following, which worked correctly:
:javascript
$( "#datepicker" ).datepicker({ minDate: new Date(1289430000000) });
Any idea what might be going on here?