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

Add label_html option to allow setting html attributes on the generated label #66

Open thechrisoshow opened 12 years ago

thechrisoshow commented 12 years ago

This lets you set specific html values for the label.

e.g. = f.text_field :address_line1, 'Address line 1', label_html: { class: "required" }

This adds the 'required' class to the generated label