Skip to content

Commit bdcf2de

Browse files
committed
fix checkboxes
1 parent d5b024f commit bdcf2de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: app/helpers/application_helper.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ def checkbox_input_row(form, name, options = {})
132132
form.label(name, class: "col-sm-2 col-form-label"),
133133
content_tag(:div, class: "col-sm-10") do
134134
content_tag(:div, class: "form-switch") do
135-
form.check_box name, class: "form-check-input form-check-inline"
135+
safe_join [
136+
form.check_box(name, options.merge(class: "form-check-input form-check-inline")),
137+
errors_for(form.object, name)
138+
].compact
136139
end
137140
end
138141
]

0 commit comments

Comments
 (0)