Sha256: 428aa16f961fef43c965c0811786b41a9de6b622a60ff1c618a62a277b054ccb

Contents?: true

Size: 471 Bytes

Versions: 8

Compression:

Stored size: 471 Bytes

Contents

require 'bh/helpers/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

8 entries across 8 versions & 1 rubygems

Version Path
bh-1.1.1 lib/bh/helpers/form/radio_button_helper.rb
bh-1.1.0 lib/bh/helpers/form/radio_button_helper.rb
bh-1.0.1 lib/bh/helpers/form/radio_button_helper.rb
bh-1.0.0 lib/bh/helpers/form/radio_button_helper.rb
bh-0.0.8 lib/bh/helpers/form/radio_button_helper.rb
bh-0.0.7 lib/bh/helpers/form/radio_button_helper.rb
bh-0.0.6 lib/bh/helpers/form/radio_button_helper.rb
bh-0.0.5 lib/bh/helpers/form/radio_button_helper.rb