class ActionView::Helpers::FormBuilder
Public Instance Methods
country_select(method, priority_or_options = {}, options = {}, html_options = {})
click to toggle source
Generate select and country option tags with the provided name. A common use of this would be to allow users to select a country name inside a web form.
See `FormOptionsHelper::country_select` for more information.
# File lib/core_extensions/action_view/helpers/form_options_helper.rb, line 93 def country_select(method, priority_or_options = {}, options = {}, html_options = {}) if Hash === priority_or_options html_options = options options = priority_or_options else options[:priority] = priority_or_options end @template.country_select(@object_name, method, objectify_options(options), @default_options.merge(html_options)) end