state_select
plugin allows you to easily create dropdown list of states for a country provided as an option.
Default country is US.
state_select(object, method, country = "US", options = {}, html_options = {})
Currently it supports:
- INDIA,
- US,
- UK,
- CANADA,
- AUSTRALIA,
- SPAIN,
- FRANCE,
- UGANDA,
- GERMANY,
- NETHERLANDS,
- MEXICO,
- POLAND.
state_select
works with Rails 2.3, 3.0 and 3.1.
- 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.
Akhil Bansal, [email protected], http://webonrails.com/, New Delhi, India