albertopq/jquery_datepicker — Issue #5: Passing in options specific to datepicker not working?
Author: triemstr
Created: 2011-11-06 14:26:58+00:00
State: open

Hi, I love this gem.

However, I can't seem to get options to work. Here is my example line:

```
<%= f.datepicker 'availability', :minDate => -20, :maxDate => "+1M +10D", :tab_index => 70 %>
```

Note I have two types of options here...those that go to datepicker (minDate, maxDate) and those that don't (tabIndex). All are put into the html and minDate and maxDate are not added to datepicker. I was just trying to do something like this:

http://jqueryui.com/demos/datepicker/

Click 'view source' about halfway down the page and it will show this:

```

```

The old gem I used to use was calendar_date_select which used prototype. See the form helpers for that gem here:

https://github.com/timcharper/calendar_date_select/blob/master/lib/calendar_date_select/form_helpers.rb

I think there is a method in the private section called calendar_date_select_process_options that is what is needed here...but correct me if I'm wrong and don't know what I'm doing here.

Thoughts?

Thanks,
Kevin