Country and Region Select Plugin
Ruby
Pull request Compare This branch is 1 commit ahead of jeremy:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib html_safe options Jan 7, 2013
spec
README.md Actual code changes for the spec committed in 0a1caa5. Also updated t… Mar 15, 2009
country_and_region_select.gemspec
init.rb

README.md

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 2.2 (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")