module BootstrapForm::Inputs::CollectionCheckBoxes
Public Instance Methods
collection_check_boxes_with_bootstrap(*args)
click to toggle source
# File lib/bootstrap_form/inputs/collection_check_boxes.rb, line 11 def collection_check_boxes_with_bootstrap(*args) html = inputs_collection(*args) do |name, value, options| options[:multiple] = true check_box(name, options, value, nil) end hidden_field(args.first, value: "", multiple: true).concat(html) end