There was an error while loading. Please reload this page.
In order to define which check_boxes should be preselected use checked option. Example (in HAML):
check_boxes
checked
= simple_form_for @car do |f| = f.input :features, as: :check_boxes, collection: ["air condition", "radio", "4 wheel drive", "cruise control"], checked: ["air condition", "radio"]