This gem allows you use a check_box_tag that will submit a value whether or not it is checked. You can also specify which values you want the tag to submit when checked and not checked.
Add this line to your application's Gemfile:
gem 'check_tag'
And then execute:
$ bundle
Or install it yourself as:
$ gem install check_tag
<%= check_tag("id", "checked_value=true", "unchecked_value=false", "default=false") %>
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request