Skip to content

collection_check_boxes with checked: #110

@tkhduracell

Description

@tkhduracell

I can't get the collection_check_boxes to work with checked: - attribute. If I use bootstrap_form_tag what do the checked: accept?

  • checked: [1,2,3,4]
  • checked: ["1","2","3","4"]
  • checked: MyActiveModel.all

E.g.
<%= f.collection_check_boxes "[search][post_type][]", PostType.all, :id, :name, checked: ["1"], hide_label: true %>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions