Class: CountryCodeInput

Inherits:
SimpleForm::Inputs::Base
  • Object
show all
Defined in:
app/inputs/country_code_input.rb

Overview

Simple Form gem custom input (see: github.com/plataformatec/simple_form).

Usage (in your simple_form):

<%= form.input :country_code, :as => :country_code %>

Instance Method Summary collapse

Instance Method Details

#inputObject



7
8
9
# File 'app/inputs/country_code_input.rb', line 7

def input
  @builder.country_code_select(attribute_name, input_options.delete(:priority) || SimpleForm.country_priority, input_html_options) #, priority_countries, options)
end