<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Plugin: state_select, generate drop down selection box for states</title>
	<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/</link>
	<description>Exploring RubyOnRails</description>
	<pubDate>Fri, 08 Aug 2008 00:29:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: atul</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-24130</link>
		<pubDate>Fri, 18 Jul 2008 15:27:36 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-24130</guid>
					<description>Thanks Akhil,

This plugin really saved lot of my time.

Atul.</description>
		<content:encoded><![CDATA[<p>Thanks Akhil,</p>
<p>This plugin really saved lot of my time.</p>
<p>Atul.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: juanjo</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-21939</link>
		<pubDate>Wed, 18 Jun 2008 01:38:42 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-21939</guid>
					<description>ES_STATES has a typo in Salamanca, correct is:

ES_STATES=[ “Alava”, “Albacete”, “Alicante”, “Almeria”, “Asturias”, “Avila”, “Badajoz”, “Barcelona”, “Burgos”, “Caceres”, “Cadiz”, “Cantrabria”, “Castellón”, “Ceuta”, “Ciudad Real”, “Cordoba”, “Coruña, A”, “Cuenca”, “Girona”, “Granada”, “Guadalajara”, “Guipuzcoa”, “Huelva”, “Huesca”, “Islas Baleares”, “Jaen”,”León”, “Lleida”, “Lugo”, “Madrid”, “Malaga”, “Melilla”, “Murcia”, “Navarra”, “Ourense”, “Palencia”, “Palmas, Las”, “Pontevedra”, “Rioja, La”, “Salamanca”, “Santa Cruz de Tenerife”, “Segovia”, “Sevila”, “Soria”, “Tarragona”, “Teruel”, “Toledo”, “Valencia”, “Valladolid”, “Vizcaya”, “Zamora”, “Zaragoza”] unless const_defined?(”ES_STATES”)</description>
		<content:encoded><![CDATA[<p>ES_STATES has a typo in Salamanca, correct is:</p>
<p>ES_STATES=[ “Alava”, “Albacete”, “Alicante”, “Almeria”, “Asturias”, “Avila”, “Badajoz”, “Barcelona”, “Burgos”, “Caceres”, “Cadiz”, “Cantrabria”, “Castellón”, “Ceuta”, “Ciudad Real”, “Cordoba”, “Coruña, A”, “Cuenca”, “Girona”, “Granada”, “Guadalajara”, “Guipuzcoa”, “Huelva”, “Huesca”, “Islas Baleares”, “Jaen”,”León”, “Lleida”, “Lugo”, “Madrid”, “Malaga”, “Melilla”, “Murcia”, “Navarra”, “Ourense”, “Palencia”, “Palmas, Las”, “Pontevedra”, “Rioja, La”, “Salamanca”, “Santa Cruz de Tenerife”, “Segovia”, “Sevila”, “Soria”, “Tarragona”, “Teruel”, “Toledo”, “Valencia”, “Valladolid”, “Vizcaya”, “Zamora”, “Zaragoza”] unless const_defined?(”ES_STATES”)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Gunnar Wolf</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-19790</link>
		<pubDate>Wed, 23 Apr 2008 18:28:50 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-19790</guid>
					<description>MEXICO_STATES = ["Aguascalientes", "Baja California", "Baja California Sur", "Campeche", "Chiapas", "Chihuahua", "Coahuila", "Colima", "Distrito Federal", "Durango", "Guanajuato", "Guerrero", "Hidalgo", "Jalisco", "Michoacán", "Morelos", "México", "Nayarit", "Nuevo León", "Oaxaca", "Puebla", "Querétaro", "Quintana Roo", "San Luis Potosí", "Sinaloa", "Sonora", "Tabasco", "Tamaulipas", "Tlaxcala", "Veracruz", "Yucatán", "Zacatecas"]</description>
		<content:encoded><![CDATA[<p>MEXICO_STATES = [&#8221;Aguascalientes&#8221;, &#8220;Baja California&#8221;, &#8220;Baja California Sur&#8221;, &#8220;Campeche&#8221;, &#8220;Chiapas&#8221;, &#8220;Chihuahua&#8221;, &#8220;Coahuila&#8221;, &#8220;Colima&#8221;, &#8220;Distrito Federal&#8221;, &#8220;Durango&#8221;, &#8220;Guanajuato&#8221;, &#8220;Guerrero&#8221;, &#8220;Hidalgo&#8221;, &#8220;Jalisco&#8221;, &#8220;Michoacán&#8221;, &#8220;Morelos&#8221;, &#8220;México&#8221;, &#8220;Nayarit&#8221;, &#8220;Nuevo León&#8221;, &#8220;Oaxaca&#8221;, &#8220;Puebla&#8221;, &#8220;Querétaro&#8221;, &#8220;Quintana Roo&#8221;, &#8220;San Luis Potosí&#8221;, &#8220;Sinaloa&#8221;, &#8220;Sonora&#8221;, &#8220;Tabasco&#8221;, &#8220;Tamaulipas&#8221;, &#8220;Tlaxcala&#8221;, &#8220;Veracruz&#8221;, &#8220;Yucatán&#8221;, &#8220;Zacatecas&#8221;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: links for 2008-04-08 &#124; Libin Pan</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-18887</link>
		<pubDate>Tue, 08 Apr 2008 06:36:41 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-18887</guid>
					<description>[...] Web On Rails - » Plugin: state_select, generate drop down selection box for states &#124; Its all about RubyOnRails(ROR) Plugin: state_select, generate drop down selection box for states (tags: rails plugin plugins state_select rubyonrails) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Web On Rails - » Plugin: state_select, generate drop down selection box for states | Its all about RubyOnRails(ROR) Plugin: state_select, generate drop down selection box for states (tags: rails plugin plugins state_select rubyonrails) [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Vishal</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-16639</link>
		<pubDate>Thu, 21 Feb 2008 17:45:47 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-16639</guid>
					<description>Hi,
Good time saving article.

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Good time saving article.</p>
<p>Thanks,
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Akhil Bansal</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-16099</link>
		<pubDate>Fri, 15 Feb 2008 04:51:36 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-16099</guid>
					<description>Hi Maged Makled,

Try this:
&lt;%= state_select 'user', 'state', 'US', :selected=&gt;'New York'  %&gt;

thanks</description>
		<content:encoded><![CDATA[<p>Hi Maged Makled,</p>
<p>Try this:<br />
<%= state_select 'user', 'state', 'US', :selected=>&#8216;New York&#8217;  %></p>
<p>thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Maged Makled</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-16095</link>
		<pubDate>Fri, 15 Feb 2008 03:43:26 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-16095</guid>
					<description>Hey guys,
         I'm trying to have a selected state and a none option to the state_select. I wasn't successful getting that to work. I tried everything but no luck. could you give me an example please. 

Thanks</description>
		<content:encoded><![CDATA[<p>Hey guys,<br />
         I&#8217;m trying to have a selected state and a none option to the state_select. I wasn&#8217;t successful getting that to work. I tried everything but no luck. could you give me an example please. </p>
<p>Thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Chris St. John</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-16036</link>
		<pubDate>Thu, 14 Feb 2008 16:43:28 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-16036</guid>
					<description>Might I suggest changing your current US_STATES to US_UNABBREV_STATES and adding the following:

  US_STATES=[
    [ "Alabama", "AL" ], 
    [ "Alaska", "AK" ], 
    [ "Arizona", "AZ" ], 
    [ "Arkansas", "AR" ], 
    [ "California", "CA" ], 
    [ "Colorado", "CO" ], 
    [ "Connecticut", "CT" ], 
    [ "Delaware", "DE" ], 
    [ "District Of Columbia", "DC" ], 
    [ "Florida", "FL" ], 
    [ "Georgia", "GA" ], 
    [ "Hawaii", "HI" ], 
    [ "Idaho", "ID" ], 
    [ "Illinois", "IL" ], 
    [ "Indiana", "IN" ], 
    [ "Iowa", "IA" ], 
    [ "Kansas", "KS" ], 
    [ "Kentucky", "KY" ], 
    [ "Louisiana", "LA" ], 
    [ "Maine", "ME" ], 
    [ "Maryland", "MD" ], 
    [ "Massachusetts", "MA" ], 
    [ "Michigan", "MI" ], 
    [ "Minnesota", "MN" ], 
    [ "Mississippi", "MS" ], 
    [ "Missouri", "MO" ], 
    [ "Montana", "MT" ], 
    [ "Nebraska", "NE" ], 
    [ "Nevada", "NV" ], 
    [ "New Hampshire", "NH" ], 
    [ "New Jersey", "NJ" ], 
    [ "New Mexico", "NM" ], 
    [ "New York", "NY" ], 
    [ "North Carolina", "NC" ], 
    [ "North Dakota", "ND" ], 
    [ "Ohio", "OH" ], 
    [ "Oklahoma", "OK" ], 
    [ "Oregon", "OR" ], 
    [ "Pennsylvania", "PA" ], 
    [ "Rhode Island", "RI" ], 
    [ "South Carolina", "SC" ], 
    [ "South Dakota", "SD" ], 
    [ "Tennessee", "TN" ], 
    [ "Texas", "TX" ], 
    [ "Utah", "UT" ], 
    [ "Vermont", "VT" ], 
    [ "Virginia", "VA" ], 
    [ "Washington", "WA" ], 
    [ "West Virginia", "WV" ], 
    [ "Wisconsin", "WI" ], 
    [ "Wyoming", "WY" ] ] unless const_defined?("US_STATES")</description>
		<content:encoded><![CDATA[<p>Might I suggest changing your current US_STATES to US_UNABBREV_STATES and adding the following:</p>
<p>  US_STATES=[<br />
    [ &#8220;Alabama&#8221;, &#8220;AL&#8221; ],<br />
    [ &#8220;Alaska&#8221;, &#8220;AK&#8221; ],<br />
    [ &#8220;Arizona&#8221;, &#8220;AZ&#8221; ],<br />
    [ &#8220;Arkansas&#8221;, &#8220;AR&#8221; ],<br />
    [ &#8220;California&#8221;, &#8220;CA&#8221; ],<br />
    [ &#8220;Colorado&#8221;, &#8220;CO&#8221; ],<br />
    [ &#8220;Connecticut&#8221;, &#8220;CT&#8221; ],<br />
    [ &#8220;Delaware&#8221;, &#8220;DE&#8221; ],<br />
    [ &#8220;District Of Columbia&#8221;, &#8220;DC&#8221; ],<br />
    [ &#8220;Florida&#8221;, &#8220;FL&#8221; ],<br />
    [ &#8220;Georgia&#8221;, &#8220;GA&#8221; ],<br />
    [ &#8220;Hawaii&#8221;, &#8220;HI&#8221; ],<br />
    [ &#8220;Idaho&#8221;, &#8220;ID&#8221; ],<br />
    [ &#8220;Illinois&#8221;, &#8220;IL&#8221; ],<br />
    [ &#8220;Indiana&#8221;, &#8220;IN&#8221; ],<br />
    [ &#8220;Iowa&#8221;, &#8220;IA&#8221; ],<br />
    [ &#8220;Kansas&#8221;, &#8220;KS&#8221; ],<br />
    [ &#8220;Kentucky&#8221;, &#8220;KY&#8221; ],<br />
    [ &#8220;Louisiana&#8221;, &#8220;LA&#8221; ],<br />
    [ &#8220;Maine&#8221;, &#8220;ME&#8221; ],<br />
    [ &#8220;Maryland&#8221;, &#8220;MD&#8221; ],<br />
    [ &#8220;Massachusetts&#8221;, &#8220;MA&#8221; ],<br />
    [ &#8220;Michigan&#8221;, &#8220;MI&#8221; ],<br />
    [ &#8220;Minnesota&#8221;, &#8220;MN&#8221; ],<br />
    [ &#8220;Mississippi&#8221;, &#8220;MS&#8221; ],<br />
    [ &#8220;Missouri&#8221;, &#8220;MO&#8221; ],<br />
    [ &#8220;Montana&#8221;, &#8220;MT&#8221; ],<br />
    [ &#8220;Nebraska&#8221;, &#8220;NE&#8221; ],<br />
    [ &#8220;Nevada&#8221;, &#8220;NV&#8221; ],<br />
    [ &#8220;New Hampshire&#8221;, &#8220;NH&#8221; ],<br />
    [ &#8220;New Jersey&#8221;, &#8220;NJ&#8221; ],<br />
    [ &#8220;New Mexico&#8221;, &#8220;NM&#8221; ],<br />
    [ &#8220;New York&#8221;, &#8220;NY&#8221; ],<br />
    [ &#8220;North Carolina&#8221;, &#8220;NC&#8221; ],<br />
    [ &#8220;North Dakota&#8221;, &#8220;ND&#8221; ],<br />
    [ &#8220;Ohio&#8221;, &#8220;OH&#8221; ],<br />
    [ &#8220;Oklahoma&#8221;, &#8220;OK&#8221; ],<br />
    [ &#8220;Oregon&#8221;, &#8220;OR&#8221; ],<br />
    [ &#8220;Pennsylvania&#8221;, &#8220;PA&#8221; ],<br />
    [ &#8220;Rhode Island&#8221;, &#8220;RI&#8221; ],<br />
    [ &#8220;South Carolina&#8221;, &#8220;SC&#8221; ],<br />
    [ &#8220;South Dakota&#8221;, &#8220;SD&#8221; ],<br />
    [ &#8220;Tennessee&#8221;, &#8220;TN&#8221; ],<br />
    [ &#8220;Texas&#8221;, &#8220;TX&#8221; ],<br />
    [ &#8220;Utah&#8221;, &#8220;UT&#8221; ],<br />
    [ &#8220;Vermont&#8221;, &#8220;VT&#8221; ],<br />
    [ &#8220;Virginia&#8221;, &#8220;VA&#8221; ],<br />
    [ &#8220;Washington&#8221;, &#8220;WA&#8221; ],<br />
    [ &#8220;West Virginia&#8221;, &#8220;WV&#8221; ],<br />
    [ &#8220;Wisconsin&#8221;, &#8220;WI&#8221; ],<br />
    [ &#8220;Wyoming&#8221;, &#8220;WY&#8221; ] ] unless const_defined?(&#8221;US_STATES&#8221;)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mike</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-6240</link>
		<pubDate>Mon, 26 Nov 2007 23:38:24 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-6240</guid>
					<description>Counties for Republic of Ireland:  IE_STATES=["Carlow","Cavan","Cork","Clare","Donegal","Dublin","Galway","Kerry","Kildare","Kilkenny","Laois","Leitrim","Limerick","Longford","Louth","Mayo","Meath","Monaghan","Offaly","Roscommon","Sligo","Tipperary","Waterford","Westmeath","Wexford","Wicklow"]  unless const_defined?("IE_STATES")
Counties for Northern Ireland:
NI_STATES=["Antrim","Armagh","Derry","Down", "Fermanagh","Tyrone"]  unless const_defined?("NI_STATES")</description>
		<content:encoded><![CDATA[<p>Counties for Republic of Ireland:  IE_STATES=[&#8221;Carlow&#8221;,&#8221;Cavan&#8221;,&#8221;Cork&#8221;,&#8221;Clare&#8221;,&#8221;Donegal&#8221;,&#8221;Dublin&#8221;,&#8221;Galway&#8221;,&#8221;Kerry&#8221;,&#8221;Kildare&#8221;,&#8221;Kilkenny&#8221;,&#8221;Laois&#8221;,&#8221;Leitrim&#8221;,&#8221;Limerick&#8221;,&#8221;Longford&#8221;,&#8221;Louth&#8221;,&#8221;Mayo&#8221;,&#8221;Meath&#8221;,&#8221;Monaghan&#8221;,&#8221;Offaly&#8221;,&#8221;Roscommon&#8221;,&#8221;Sligo&#8221;,&#8221;Tipperary&#8221;,&#8221;Waterford&#8221;,&#8221;Westmeath&#8221;,&#8221;Wexford&#8221;,&#8221;Wicklow&#8221;]  unless const_defined?(&#8221;IE_STATES&#8221;)<br />
Counties for Northern Ireland:<br />
NI_STATES=[&#8221;Antrim&#8221;,&#8221;Armagh&#8221;,&#8221;Derry&#8221;,&#8221;Down&#8221;, &#8220;Fermanagh&#8221;,&#8221;Tyrone&#8221;]  unless const_defined?(&#8221;NI_STATES&#8221;)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-4987</link>
		<pubDate>Tue, 06 Nov 2007 03:37:51 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-4987</guid>
					<description>Canada does NOT have "District of Columbia and NEEDS "Yukon"</description>
		<content:encoded><![CDATA[<p>Canada does NOT have &#8220;District of Columbia and NEEDS &#8220;Yukon&#8221;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Piotrek</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-4100</link>
		<pubDate>Wed, 26 Sep 2007 19:51:53 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-4100</guid>
					<description>POLAND_STATES=["Dolnośląskie", "Kujawsko-Pomorskie", "Lubelskie", "Lubuskie", "Łódzkie", "Małopolskie", "Mazowieckie", "Opolskie", "Podkarpackie", "Podlaskie", "Pomorskie", "Śląskie", "Świętokrzyskie", "Warmińsko-Mazurskie", "Wielkopolskie", "Zachodniopomorskie"] unless const_defined?("POLAND_STATES")</description>
		<content:encoded><![CDATA[<p>POLAND_STATES=[&#8221;Dolnośląskie&#8221;, &#8220;Kujawsko-Pomorskie&#8221;, &#8220;Lubelskie&#8221;, &#8220;Lubuskie&#8221;, &#8220;Łódzkie&#8221;, &#8220;Małopolskie&#8221;, &#8220;Mazowieckie&#8221;, &#8220;Opolskie&#8221;, &#8220;Podkarpackie&#8221;, &#8220;Podlaskie&#8221;, &#8220;Pomorskie&#8221;, &#8220;Śląskie&#8221;, &#8220;Świętokrzyskie&#8221;, &#8220;Warmińsko-Mazurskie&#8221;, &#8220;Wielkopolskie&#8221;, &#8220;Zachodniopomorskie&#8221;] unless const_defined?(&#8221;POLAND_STATES&#8221;)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: kate</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-3942</link>
		<pubDate>Sat, 22 Sep 2007 02:05:53 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-3942</guid>
					<description>Hi, I am getting this error:

ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::US) on line 

But this works:
</description>
		<content:encoded><![CDATA[<p>Hi, I am getting this error:</p>
<p>ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::US) on line </p>
<p>But this works:
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tyler</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-2688</link>
		<pubDate>Fri, 27 Jul 2007 17:55:53 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-2688</guid>
					<description>In response to Matt I played with this for about an hour and a half before I gained any functionality. Here's my code (my object is a TV Station, "station" and my method is "state")


State:
 
 	

I inserted a blank option field so if no state is given it doesn't get set to AK or Alabama by default. The state will get set if it exists (for an edit type function) but if it does not exist it will be blank. 

PS I had to restart the web server after modifying the state_select.rb file in the plugin.</description>
		<content:encoded><![CDATA[<p>In response to Matt I played with this for about an hour and a half before I gained any functionality. Here&#8217;s my code (my object is a TV Station, &#8220;station&#8221; and my method is &#8220;state&#8221;)</p>
<p>State:</p>
<p>I inserted a blank option field so if no state is given it doesn&#8217;t get set to AK or Alabama by default. The state will get set if it exists (for an edit type function) but if it does not exist it will be blank. </p>
<p>PS I had to restart the web server after modifying the state_select.rb file in the plugin.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tyler</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-2687</link>
		<pubDate>Fri, 27 Jul 2007 17:48:43 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-2687</guid>
					<description>I put together a list of just the postal codes - no state names - for the US. List was compiled from the USPS official postal codes list of the US and major outlying areas.

US_POSTAL_CODES_STATES = ['AK','AL','AR','AS','AZ','CA','CO','CT','DC','DE','FL','FM','GA','GU','HI','IA','ID','IL','IN','KS','KY','LA','MA','MD','ME','MH','MI','MN','MO','MP','MS','MT','NC','ND','NE','NH','NJ','NM','NV','NY','OH','OK','OR','PA','PR','PW','RI','SC','SD','TN','TX','UT','VA','VI','VT','WA','WI','WV','WY']
 unless const_defined?("US_POSTAL_CODES_STATES")</description>
		<content:encoded><![CDATA[<p>I put together a list of just the postal codes - no state names - for the US. List was compiled from the USPS official postal codes list of the US and major outlying areas.</p>
<p>US_POSTAL_CODES_STATES = [&#8217;AK&#8217;,'AL&#8217;,'AR&#8217;,'AS&#8217;,'AZ&#8217;,'CA&#8217;,'CO&#8217;,'CT&#8217;,'DC&#8217;,'DE&#8217;,'FL&#8217;,'FM&#8217;,'GA&#8217;,'GU&#8217;,'HI&#8217;,'IA&#8217;,'ID&#8217;,'IL&#8217;,'IN&#8217;,'KS&#8217;,'KY&#8217;,'LA&#8217;,'MA&#8217;,'MD&#8217;,'ME&#8217;,'MH&#8217;,'MI&#8217;,'MN&#8217;,'MO&#8217;,'MP&#8217;,'MS&#8217;,'MT&#8217;,'NC&#8217;,'ND&#8217;,'NE&#8217;,'NH&#8217;,'NJ&#8217;,'NM&#8217;,'NV&#8217;,'NY&#8217;,'OH&#8217;,'OK&#8217;,'OR&#8217;,'PA&#8217;,'PR&#8217;,'PW&#8217;,'RI&#8217;,'SC&#8217;,'SD&#8217;,'TN&#8217;,'TX&#8217;,'UT&#8217;,'VA&#8217;,'VI&#8217;,'VT&#8217;,'WA&#8217;,'WI&#8217;,'WV&#8217;,'WY&#8217;]<br />
 unless const_defined?(&#8221;US_POSTAL_CODES_STATES&#8221;)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jonathan</title>
		<link>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-1848</link>
		<pubDate>Mon, 18 Jun 2007 00:18:51 +0000</pubDate>
		<guid>http://webonrails.com/2006/09/12/plugin-state_select-generate-drop-down-selection-box-for-states/#comment-1848</guid>
					<description>Hey - just wanted to second what Timur said. Having the state postal codes is a big help. I used that as he posted, except I named it "US_POSTAL_STATES". That seemed a bit more semantic to me.

Thanks - it's a great help!</description>
		<content:encoded><![CDATA[<p>Hey - just wanted to second what Timur said. Having the state postal codes is a big help. I used that as he posted, except I named it &#8220;US_POSTAL_STATES&#8221;. That seemed a bit more semantic to me.</p>
<p>Thanks - it&#8217;s a great help!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
