Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/uncharted/extensions/rails.rb

Instance Method Summary collapse

Instance Method Details

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



70
71
72
# File 'lib/uncharted/extensions/rails.rb', line 70

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

#territory_select(method, priority_territories = nil, options = {}, html_options = {}) ⇒ Object



74
75
76
# File 'lib/uncharted/extensions/rails.rb', line 74

def territory_select(method, priority_territories = nil, options = {}, html_options = {})
  @template.territory_select(@object_name, method, priority_territories, options.merge(:object => @object), html_options)
end