Class: ActionView::Helpers::FormBuilder
- Inherits:
-
Object
- Object
- ActionView::Helpers::FormBuilder
- 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
- #country_select(method, priority_country_codes = nil, options = {}, html_options = {}) ⇒ Object
- #currency_select(method, priority_currency_codes = nil, options = {}, html_options = {}) ⇒ Object
- #language_select(method, priority_language_codes = nil, options = {}, html_options = {}) ⇒ Object
- #locale_select(method, priority_locale_codes = nil, options = {}, html_options = {}) ⇒ Object
- #state_select(method, country_code, options = {}, html_options = {}) ⇒ Object
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, = {}, = {}) @template.country_select(@object_name, method, priority_country_codes, .merge(:object => @object), ) 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, = {}, = {}) @template.currency_select(@object_name, method, priority_currency_codes, .merge(:object => @object), ) 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, = {}, = {}) @template.language_select(@object_name, method, priority_language_codes, .merge(:object => @object), ) 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, = {}, = {}) @template.locale_select(@object_name, method, priority_locale_codes, .merge(:object => @object), ) 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, = {}, = {}) @template.country_select(@object_name, method, country_code, .merge(:object => @object), ) end |