Rails check_box_tag set checked with condition value

In Rails, we have check_box_tag helper method to create a check box form input tag. With this helper method sometimes we have to select the check box based on the parameters, based on certain object parameter’s value and sometimes based on any variable value that already set in controller. Which can be achieve with if…

Read more...