Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/has_enum/helpers.rb

Instance Method Summary collapse

Instance Method Details

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



34
35
36
# File 'lib/has_enum/helpers.rb', line 34

def radio_button_enum(method, options = {})
  @template.radio_button_enum(@object_name, method, objectify_options(options))
end

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



38
39
40
# File 'lib/has_enum/helpers.rb', line 38

def select_enum(method, options = {})
  @template.select_enum(@object_name, method, objectify_options(options.merge(:include_blank => true)))
end