Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Country and Region Select Plugin

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 README.md
Octocat-spinner-32 country_and_region_select.gemspec
Octocat-spinner-32 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")
Something went wrong with that request. Please try again.