Can someone tell me how to set these check boxes to checked? I\'m sure it\'s simple, but after an hour of trying i think I need to ask! Thanks!
= form_tag mo
Ref check_box_tag
check_box_tag "ratings[#{rating}]", 1, !!(rating.rating)
Your 2nd parameter must be value of checkbox
2nd parameter
value
Your 3rd parameter must be a boolean condition which return true/false and depends on it checkbox is checked/unchecked
3rd parameter
boolean condition
true/false
checked/unchecked