Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
state_select plugin allows you to easyly create dropdown list of states for a country provided as an option.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
lib
test
MIT-LICENSE
README.md
init.rb
install.rb
state_select.gemspec

README.md

StateSelect

state_select plugin allows you to easily create dropdown list of states for a country provided as an option.

Default country is US.

Usage

state_select(object, method, country = "US", options = {}, html_options = {})

Currently it supports:

  • INDIA,
  • US,
  • UK,
  • CANADA,
  • AUSTRALIA,
  • SPAIN,
  • FRANCE,
  • UGANDA,
  • GERMANY,
  • NETHERLANDS,
  • MEXICO,
  • POLAND.

Compatibility

state_select works with Rails 2.3, 3.0 and 3.1.

Contributors

  • Thanks keith for Australian states
  • Thanks Vicent for Spanish states
  • Thanks Chuck Phillips for Ugandan states
  • Thanks Jonathan Tron for French states
  • Thanks Gavin Morrice for UK States
  • Thanks Filip Tepper for Polish States

If you want to add other country please send me the list of states and I will add them, or you can fork and make a pull request.

Author

Akhil Bansal, bansalakhil30.10@gmail.com, http://webonrails.com/, New Delhi, India

Something went wrong with that request. Please try again.