class SimpleForm::ActionViewExtensions::BuilderBase
:nodoc:
Based on (at this time upcoming) Rails 4 collection builders.
Base builder to handle each instance of a collection of radio buttons / check boxes.
def initialize(template_object, object_name, method_name, object,
def initialize(template_object, object_name, method_name, object, sanitized_attribute_name, text, value, input_html_options) @template_object = template_object @object_name = object_name @method_name = method_name @object = object @sanitized_attribute_name = sanitized_attribute_name @text = text @value = value @input_html_options = input_html_options end
def label(label_html_options={}, &block)
def label(label_html_options={}, &block) @template_object.label(@object_name, @sanitized_attribute_name, @text, label_html_options, &block) end