Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_plus/state.rb,
lib/i18n_plus/locale.rb,
lib/i18n_plus/country.rb,
lib/i18n_plus/currency.rb,
lib/i18n_plus/language.rb

Instance Method Summary collapse

Instance Method Details

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



71
72
73
# File 'lib/i18n_plus/country.rb', line 71

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

#currency_select(method, priority_currency_codes = nil, options = {}, html_options = {}) ⇒ Object



71
72
73
# File 'lib/i18n_plus/currency.rb', line 71

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

#language_select(method, priority_language_codes = nil, options = {}, html_options = {}) ⇒ Object



72
73
74
# File 'lib/i18n_plus/language.rb', line 72

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

#locale_select(method, priority_locale_codes = nil, options = {}, html_options = {}) ⇒ Object



71
72
73
# File 'lib/i18n_plus/locale.rb', line 71

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

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



64
65
66
# File 'lib/i18n_plus/state.rb', line 64

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