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
check_box_tag(name, value = "1", checked = false, options = {})
Examples:
check_box_tag 'receive_email', 'yes', true # => check_box_tag 'tos', 'yes', false, class: 'accept_tos' # => check_box_tag 'eula', 'accepted', false, disabled: true # =>
api.rubyonrails.org