module Bh::Form::RadioButtonHelper

Public Instance Methods

radio_button(method, tag_value, options = {}) click to toggle source
Calls superclass method
# 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