Module: Bh::Form::RadioButtonHelper

Includes:
BaseHelper
Defined in:
lib/bh/core_ext/rails/form/radio_button_helper.rb

Instance Method Summary collapse

Methods included from Helpers

#alert_box, #bootstrap_css, #bootstrap_js, #bootstrap_theme_css, #button, #button_to, #dropdown, #font_awesome_css, #glyphicon, #horizontal, #icon, #link_to, #modal, #nav, #navbar, #panel, #panel_row, #progress_bar, #vertical

Instance Method Details

#radio_button(method, tag_value, options = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/bh/core_ext/rails/form/radio_button_helper.rb', line 8

def radio_button(method, tag_value, options = {})
  options.merge! offset: true, use_label: false
  options[:label] ||= tag_value
  base_field method, :radio_button, options do
    label_and_field 'radio', method, options do
      super method, tag_value, options
    end
  end
end