Is it possible to provide a CSS class for the time_zone_select FormHelper in Rails 3. I currently have something like
f.time_zone_select :time_zone
Have tried options like -
f.time_zone_select :time_zone, nil, :class => 'classname'
But that does not work
Try the following code:
f.time_zone_select :time_zone, nil, {}, {:class => 'classname'}
Just in case anyone is wondering where to add the :default =>
f.time_zone_select :time_zone, nil, {:default => default_timezone}, {:class => 'classname'}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With