albertopq/jquery_datepicker — Issue #9: Problem setting the default date
Author: maxniko
Created: 2011-12-06 19:33:49+00:00
State: open

Hi. I'm using your gem and I'm having a hard time getting the textbox generated (with the datepicker_input tag) to display a specific date (say, the current date) on load. I tried using the :defaultDate option but got no results.
Here's the code:

<%= datepicker_input(:busqueda, :fecha_fin, :firstDay => 0, :dateFormat => 'dd/mm/yy', :prevText => 'Anterior', :nextText => 'Siguiente', :maxDate => '+0d', :monthNames => ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'], :dayNamesMin => ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa']) %>

I hope to get through this :)
Thanks in advance