Sha256: 62a2505444a19f65ea2c78ef6fc2e27378ae5dcde89122401c26306bfb3e1ad4

Contents?: true

Size: 478 Bytes

Versions: 7

Compression:

Stored size: 478 Bytes

Contents

require 'bh/core_ext/rails/form/base_helper'

module Bh
  module Form
    module RadioButtonHelper
      include BaseHelper

      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
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bh-1.3.6 lib/bh/core_ext/rails/form/radio_button_helper.rb
bh-1.3.5 lib/bh/core_ext/rails/form/radio_button_helper.rb
bh-1.3.4 lib/bh/core_ext/rails/form/radio_button_helper.rb
bh-1.3.3 lib/bh/core_ext/rails/form/radio_button_helper.rb
bh-1.3.1 lib/bh/core_ext/rails/form/radio_button_helper.rb
bh-1.3.0 lib/bh/core_ext/rails/form/radio_button_helper.rb
bh-1.2.0 lib/bh/core_ext/rails/form/radio_button_helper.rb