Module: ActionView::Helpers::FormHelper
- Defined in:
- lib/symbolize/symbolize_helper.rb
Instance Method Summary collapse
- #radio_sym(object, method, choices = nil, options = {}) ⇒ Object
-
#select_sym(object, method, choices = nil, options = {}, html_options = {}) ⇒ Object
helper to create a select drop down list for the symbolize values.
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, = {}) InstanceTag.new(object, method, self, .delete(:object)). to_radio_sym_tag(choices, ) 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, = {}, = {}) InstanceTag.new(object, method, self, .delete(:object)). to_select_sym_tag(choices, , ) end |