Class: RadioButtonsLeftLabelInput

Inherits:
SimpleForm::Inputs::CollectionRadioButtonsInput
  • Object
show all
Defined in:
lib/simple_form_ext/ext/radio_buttons_left_label_input.rb

Overview

example <%= form.input :gender, :as => :radio_buttons_left_label, :collection => %w[Female Male] %>

Instance Method Summary collapse

Instance Method Details

#inputObject



5
6
7
8
9
10
11
12
# File 'lib/simple_form_ext/ext/radio_buttons_left_label_input.rb', line 5

def input
  label_method, value_method = detect_collection_methods

  @builder.send("collection_radio_buttons",
    attribute_name, collection, value_method, label_method,
    input_options, input_html_options, &collection_block_for_nested_boolean_style
  )
end