Class: SimpleForm::ActionViewExtensions::RadioButtonBuilder

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

Overview

Handles generating an instance of radio + label for collection_radio_buttons.

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 SimpleForm::ActionViewExtensions::BuilderBase

Instance Method Details

#radio_button(extra_html_options = {}) ⇒ Object

:nodoc:



26
27
28
29
# File 'lib/simple_form/action_view_extensions/builder.rb', line 26

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