albertopq/jquery_datepicker — Issue #6: html_escape not found
Author: triemstr
Created: 2011-11-07 03:21:08+00:00
State: open

Hi I'm getting an exception that is difficult for me to figure out. The gem works fine when I do a get request on my page but after submission, when the record is invalid, the return to the page throws an exception:

```
-------------------------------
Backtrace:
-------------------------------
undefined method `html_escape' for #

jquery_datepicker (0.3.0) lib/app/helpers/form_helper.rb:41:in `get_to_input_field_tag_options'
jquery_datepicker (0.3.0) lib/app/helpers/form_helper.rb:11:in `datepicker'
jquery_datepicker (0.3.0) lib/app/helpers/form_helper.rb:23:in `datepicker'
app/views/listings/new_supply.html.erb:113:in `block (2 levels) in _app_views_listings_new_supply_html_erb__312169607_49857096'
```

Is there some reason why this doesn't work when there is a failed save? I imagine I may be doing something wrong, but at the same time, I changed html_escape in form_helper to:

```
ERB::Util.html_escape
```

and it worked.

Any chance you can update the gem and put another one out with that change? If you have any other thoughts, I'm all ears.

Kevin