I am trying to add a class to the option tag generated by the following code:
=f.datetime_select :clock_out, {class: 'option-large'}
I am not sure how to get this to work. Does this helper provide a way to assign a class to the option tags generated?
What about
options_for_select? You need to generate yourself the options as well but you can set html attributes too.So it would be something like
You could otherwise add a class using Ruby/Javascript once the HTML code is generated.
In Ruby (server side), you could store the result of datetime_select and gsub it.
In Javascript (client side), you select your options and add class to the one you want.