Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Country Select Plugin
Ruby
Branch: master
Pull request Compare This branch is 3 commits ahead, 1 commit behind rails:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
rails
.gitignore
MIT-LICENSE
README.md
Rakefile
VERSION
install.rb
uninstall.rb

README.md

CountrySelect

Provides a simple helper to get an HTML select list of countries. The list of countries comes from the ISO 3166 standard. While it is a relatively neutral source of country names, it will still offend some users.

Users are strongly advised to evaluate the suitability of this list given their user base.

  • Added Country 2 Code abbreviations to select menu.

Example

Standard, full country names

country_select("user", "country_name")

Two-character abbreviations as the select values

country_select("user", "country_abbreviation", [['United States','US']], {:country_code => 2})

Copyright (c) 2008 Michael Koziarski, released under the MIT license

Something went wrong with that request. Please try again.