stouset / twitter_bootstrap_form_for

A Rails FormBuilder DSL for generating Twitter Bootstrap forms
https://github.com/stouset/twitter_bootstrap_form_for
MIT License
409 stars 110 forks source link

<select> does not accept html options #45

Closed fwouts closed 12 years ago

fwouts commented 12 years ago

Correct me if I'm wrong, but in standard Rails forms, you can specify HTML options such as a class for a <select> element with the following syntax:

f.select :field, choices, {}, { :class => 'my_css_class' }

With twitter_bootstrap_form_for, I was expecting the syntax to be:

f.select :field, label, choices, {}, { :class => 'my_css_class' }

However that solution does not seem to work. Is that a known issue?

fwouts commented 12 years ago

Turns out my server was just ignoring the changes to my file, and rebooting it fixed it. Sorry about this!

stouset commented 12 years ago

No problem. :) Glad to hear it was resolved.