LabelledForm

Adds label: option to Rails form helpers.

Usage

Works like you’d expect, or at least, works like I’d expect! Examples:

```ruby = form_with :user do |form|

# Prepends label to field and infers label text = form.text_field :email, label: true # #

# Supports specifying different label text = form.text_field :name, label: “Full name” # #

# Appends label to field for radio buttons and checkboxes = form.radio_button :gender, “Male”, label: true # #

# Specify label class = form.text_field :email, label_class: “hidden” # #

# Append colon to label = form.text_field :email, label_with_colon: true # #

# Wrap whole thing in a = form.text_field :email, wrap_in_dfn: true # # <dt></dt> # <dd></dd> #

end ```

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/botandrose/labelled_form.

License

The gem is available as open source under the terms of the MIT License.