Class: SimpleFormWithClientValidation::ActionViewExtensions::CheckBoxBuilder

Inherits:
BuilderBase
  • Object
show all
Defined in:
lib/simple_form_with_client_validation/action_view_extensions/builder.rb

Overview

Handles generating an instance of check box + label for collection_check_boxes.

Instance Attribute Summary

Attributes inherited from BuilderBase

#object, #text, #value

Instance Method Summary collapse

Methods inherited from BuilderBase

#initialize, #label

Constructor Details

This class inherits a constructor from SimpleFormWithClientValidation::ActionViewExtensions::BuilderBase

Instance Method Details

#check_box(extra_html_options = {}) ⇒ Object

:nodoc:



34
35
36
37
# File 'lib/simple_form_with_client_validation/action_view_extensions/builder.rb', line 34

def check_box(extra_html_options={})
  html_options = extra_html_options.merge(@input_html_options)
  @form_builder.check_box(@method_name, html_options, @value, nil)
end