I have form filled after edit that form not checked the checkbox how do it? and this is my code.
.available_days_div
= label_tag "Available Days"
br
- ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"].each do |cld|
= check_box_tag "available_days[]", cld, false, class: "fields_for_enabled available_days_check_box", id: "available_days_#{cld}_check_box", data: {day: "#{cld}"}
| #{cld.humanize}
Thanks for your help!