Socket
Book a DemoInstallSign in
Socket

i18n_country_select

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n_country_select

1.2.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

{Build Status}[https://travis-ci.org/onomojo/i18n_country_select]

== Country Code Select

A simple country code select helper with I18n translations for the countries. Works exactly the same as country_select but uses country codes instead and has i18n translations for the country names.

NOTE: The old country_code_select repository that this one was forked from is outdated and no longer maintained. This i18_country_select repository is the most current.

== Installation Put the following in your Gemfile

gem 'i18n_country_select'

== Example Simple use supplying model and attribute as parameters:

country_code_select(:user, :country)

Supplying priority countries to be placed at the top of the list:

country_code_select(:user, :country, [[ 'US', 'United States' ], [ 'CA', 'Canada' ]])

Specifying different selected value:

country_code_select(:user, :country, [], selected: 'CA')

Based on the deprecated country_code_select by: Russ Smith (russ@bashme.org) and Frank Wambutt (frank@mo-stud.io)

== License

MIT or GPL

FAQs

Package last updated on 20 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.