Class: CountryInput

Inherits:
FormtasticBootstrap::Inputs::SelectInput
  • Object
show all
Defined in:
app/inputs/country_input.rb

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



3
4
5
# File 'app/inputs/country_input.rb', line 3

def to_html
  builder.input(method, :as => :select, :collection => Iso3166.codes.map {|code| Iso3166.localize(code)})
end