Plugins - State Select

StarAdd to favorites

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).

Akhil Bansal

http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/

http://opensvn.csie.org/state_select/trunk/

  • Currently 4.8/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

View Extensions

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?