I have:

```
form.input :duration, as: select, collection: {}

```

I need:

```
<option value="" data-price="XXX"></option>

```

Rails does not support HTML5 data attributes for the option tag. Formtastic [suggests](https://github.com/justinfrench/formtastic/issues/509) to create a helper method for this.

Formtastic readme [describes](https://github.com/justinfrench/formtastic) how to extend input tags. However, in [select\_input.rb](https://github.com/justinfrench/formtastic/blob/master/lib/formtastic/inputs/select_input.rb) I can't find any method which would affect the ***option*** tag. So, how do I do this?

Also, I found [enhanced\_select](https://github.com/bkuhlmann/enhanced_select) gem which does exactly what I need, but I am not able to make it work with formtastic.