Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/carmen/action_view_helpers.rb

Instance Method Summary collapse

Instance Method Details

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



60
61
62
# File 'lib/carmen/action_view_helpers.rb', line 60

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

#state_select(method, country_code = Carmen.default_country, options = {}, html_options = {}) ⇒ Object



63
64
65
# File 'lib/carmen/action_view_helpers.rb', line 63

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