Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,15 @@ BootstrapForms also provide helpful helpers that automatically creates the
```

Collection methods accept these options:
* `:label`: Customize the `form_group`'s label;
* `:hide_label`: Pass true to hide the `form_group`'s label;
* `:help`: Add a help span to the `form_group`;
* `:label`: Customize the `form_group`'s label
* `:hide_label`: Pass true to hide the `form_group`'s label
* `:help`: Add a help span to the `form_group`
* `:checked`: A collection of the selected/checked values. Can be ids or objects:

```
<%= f.check_boxes_collection :skills, Skill.all, :id, :name, checked: Skill.find([1,2]) %>
<%= f.check_boxes_collection :skills, Skill.all, :id, :name, checked: [1,2] %>
```
* Other options will be forwarded to the `radio_button`/`check_box` method;

### Prepending and Appending Inputs
Expand Down