A country-select compatible country selector helper which uses ISO country codes.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
country_code_select.gemspec

README.md

Country-Code-Select

A country-select compatible country selector helper which uses ISO country codes.

Installation

Add this line to your application's Gemfile:

gem 'country-code-select'

And then execute:

$ bundle

Or install it yourself as:

$ gem install country-code-select

Usage

Simple use supplying model and attribute as parameters:

country_select("user", "country_name")

Supplying priority countries to be placed at the top of the list. Countries entered should be the country code.:

country_select("user", "country_name", [ "GB", "FR", "US" ])