В моем приложении Rails, я создал набор флажков следующим образом:Выбрать все галочки
<div class="form_row">
<label for="features[]">Features:</label>
<% ['scenarios', 'news', 'role_profiles', 'private_messages', 'chatrooms', 'forums', 'polls'].each do |feature| %>
<br><%= check_box_tag 'features[]', feature, (@features || {}).include?(feature) %>
<%= feature.humanize %>
<% end %>
</div>
Я хотел бы знать, как создать кнопку, которая будет «Select All».
см Http: // stackoverflow.com/questions/386281/how-to-implement-select-all-check-box-in -html –