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

Allow styling SELECT elements #78

Open francois opened 11 years ago

francois commented 11 years ago

By calling the helper with an :html key, we can style the underlying select with a class:

<%= f.select :language, nil, html: { class: "span1" } %>

This change is Reviewable

francois commented 11 years ago

Without this patch, passing in a class option to select doesn't style the element at all.