Skip to content

jocaba/country_and_region_select

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Country and region select

Provides a simple helper to get an HTML select list of countries and regions. The list of countries comes from iso-codes package and follows IBM Globalization guideline to avoid culturally-sensitive issues in Taiwan and China.

This plugin is modified from Rails iso-3166-country-select plugin and licensed under the MIT

Internationalization

The plugin provides support for translating country names via the Rails I18n framework provided with Rails 3.0 (see the Rails Internationalization (I18n) API guide for details).

The original english country names are stored in the database and will be used as translation keys when translating the country names into their equivalent names in the current locale.

Example

country_select("user", "country_name")

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%