class ActionView::Helpers::FormBuilder

Public Instance Methods

country_select(method, options = {}, html_options = {}) click to toggle source
# File lib/country_select/country_select_helper.rb, line 6
def country_select(method, options = {}, html_options = {})
  unless options.is_a?(Hash)
    raise ArgumentError, 'Invalid syntax for country_select method. options must be a hash'
  end

  @template.country_select(@object_name, method, objectify_options(options), @default_options.merge(html_options))
end