Module: ActionView::Helpers::FormHelper

Defined in:
lib/symbolize/symbolize_helper.rb

Instance Method Summary collapse

Instance Method Details

#radio_sym(object, method, choices = nil, options = {}) ⇒ Object



12
13
14
15
# File 'lib/symbolize/symbolize_helper.rb', line 12

def radio_sym(object, method, choices = nil, options = {})
  InstanceTag.new(object, method, self, options.delete(:object)).
    to_radio_sym_tag(choices, options)
end

#select_sym(object, method, choices = nil, options = {}, html_options = {}) ⇒ Object

helper to create a select drop down list for the symbolize values



6
7
8
9
10
# File 'lib/symbolize/symbolize_helper.rb', line 6

def select_sym(object, method, choices = nil, options = {}, html_options = {})

  InstanceTag.new(object, method, self, options.delete(:object)).
    to_select_sym_tag(choices, options, html_options)
end