Module: ActionView::Helpers::FormHelper

Defined in:
lib/has_enum/helpers.rb

Instance Method Summary collapse

Instance Method Details

#radio_button_enum(object_name, method, options = {}) ⇒ Object



2
3
4
5
# File 'lib/has_enum/helpers.rb', line 2

def radio_button_enum(object_name, method, options = {})
  ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)).
    to_radio_button_enum_tag(options)
end

#select_enum(object_name, method, options = {}) ⇒ Object



7
8
9
10
# File 'lib/has_enum/helpers.rb', line 7

def select_enum(object_name, method, options = {})
  ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)).
    to_select_enum_tag(options)
end