Class: CountryCodeInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- CountryCodeInput
- 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
#input ⇒ Object
7 8 9 |
# File 'app/inputs/country_code_input.rb', line 7 def input @builder.country_code_select(attribute_name, .delete(:priority) || SimpleForm.country_priority, ) #, priority_countries, options) end |