Class: ActionView::Helpers::FormBuilder
- Inherits:
-
Object
- Object
- ActionView::Helpers::FormBuilder
- Defined in:
- lib/list_select.rb,
lib/list_select.rb
Instance Method Summary collapse
- #country_select(method, priority_countries = nil, options = {}, html_options = {}) ⇒ Object
- #list_select(method, list, options = {}, html_options = {}) ⇒ Object
Instance Method Details
#country_select(method, priority_countries = nil, options = {}, html_options = {}) ⇒ Object
60 61 62 63 64 |
# File 'lib/list_select.rb', line 60 def country_select(method, priority_countries = nil, = {}, = {}) = .merge(:priority_items => priority_countries) if priority_countries list = .delete(:list) || :countries_cldr list_select(method, list, , ) end |
#list_select(method, list, options = {}, html_options = {}) ⇒ Object
41 42 43 |
# File 'lib/list_select.rb', line 41 def list_select(method, list, = {}, = {}) @template.list_select(@object_name, method, list, (), @default_options.merge()) end |