diff --git a/README.md b/README.md index c8134180..2668a611 100644 --- a/README.md +++ b/README.md @@ -221,6 +221,28 @@ the wrapper as well: Any extra option passed to these methods will be rendered as html option. +### Stripping away all wrapper divs + +**SimpleForm** also allows you to strip away all the div wrappers around the `` field that is generated with the usual `f.input`. +The easiest way to achieve this is to use `f.input_field`. + +Example: + +```erb +simple_form_for @user do |f| + f.input_field :name +end +``` + +Produces: + +```erb + +``` + +To view the actual RDocs for this, check them out here - http://rubydoc.info/github/plataformatec/simple_form/master/SimpleForm/FormBuilder:input_field + ### Collections And what if you want to create a select containing the age from 18 to 60 in your form? You can do it