Plugins - State Select
Add to favoritesCreates the select options for states in US, Canada, and India.
Usage
- state_select(object, method, country=’US’, options = {}, html_options = {})
Return select and option tags for the given object and method, using state_options_for_select to generate the list of option tags.
- state_options_for_select(selected = nil, country = ‘US’)
Returns a string of option tags for states in a country. Supply a state name as selected to have it marked as the selected option tag.
NOTE: Only the option tags are returned, you have to wrap this call in a regular HTML select tag.
Curently it can generate state list for India, US, Canada, Australia and Spain(default is US).
http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/
http://opensvn.csie.org/state_select/trunk/
View Extensions
