Country Select Plugin (with removal option)
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits ahead, 1 commit behind rails:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.DS_Store
MIT-LICENSE
README
Rakefile
init.rb
install.rb
uninstall.rb

README

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 removal option ***

New format is:

  country_select(method, removed_countries = nil, priority_countries = nil, options = {}, html_options = {})

removed_countries is in the form of an Array

Example
=======

country_select("user", "country_name")


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

** Modifications 
Copyright (c) 2009 Simon Chiu, released under the MIT license