Skip to content

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

License

Notifications You must be signed in to change notification settings

alfielapeter/state_select

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, [email protected], http://webonrails.com/, New Delhi, India

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%