In my Rails app I\'ve created a set of checkboxes as follows:
Features:
I think you can use query like that
and the html will be something like
<%= button_tag 'select / unselect all', id: 'check_all', class:'b' %>