Links
State Select
Categories
State Select
Creates 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).
Vitals
| Home | http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/ |
|---|---|
| Repository | http://opensvn.csie.org/state_select/trunk/ |
| License | |
| Rating | (14 votes) |
| Owner | Akhil Bansal |
| Created | 14 September 2006 |
