Class: ActionView::Helpers::Tags::CollectionCheckBoxes::CheckBoxBuilder

Inherits:
Builder
  • Object
show all
Defined in:
actionview/lib/action_view/helpers/tags/collection_check_boxes.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#check_box(extra_html_options = {}) ⇒ Object


12
13
14
15
16
17
# File 'actionview/lib/action_view/helpers/tags/collection_check_boxes.rb', line 12

def check_box(extra_html_options = {})
  html_options = extra_html_options.merge(@input_html_options)
  html_options[:multiple] = true
  html_options[:skip_default_ids] = false
  @template_object.check_box(@object_name, @method_name, html_options, @value, nil)
end