Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/country-select-iso.rb

Instance Method Summary collapse

Instance Method Details

#country_select(method, options = {}, html_options = {}) ⇒ Object



80
81
82
# File 'lib/country-select-iso.rb', line 80

def country_select(method, options = {}, html_options = {})
  @template.country_select(@object_name, method, options.merge(object: @object), html_options)
end

#state_select(method, options = {}, html_options = {}) ⇒ Object



84
85
86
# File 'lib/country-select-iso.rb', line 84

def state_select(method, options = {}, html_options = {})
  @template.state_select(@object_name, method, options.merge(object: @object), html_options)
end