country-code-select

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

4 years after

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" ])

Related Repositories

country-picker-android

country-picker-android

A simple library that displays a beautiful list of all the countries allowing th ...

country-select-js

country-select-js

A quick jQuery-based country picker based on https://github.com/Bluefieldscom/in ...

country-picker-android

country-picker-android

A simple library that displays a beautiful list of all the countries allowing th ...

vue-select

vue-select

A Vue.js component implementing the select control with the jQuery select2 plugi ...

country_code_select

country_code_select

Country Code Select Form Helper for Rails ...