Skip to content
This repository

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…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 init.rb
Octocat-spinner-32 install.rb
Octocat-spinner-32 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.