I currently have a rails check_box_tag call that looks like
check_box_tag #{name}
I want to include a checked attribute, which I know I can do
If anyone have column type boolean then look at this. is_checked? will be default boolean value. It worked for me.
<%= hidden_field_tag :name, 'false' %> <%= check_box_tag :name, true, is_checked? %>