# US states and world countries selectors

**URL:** <https://www.ruby-forum.com/t/us-states-and-world-countries-selectors/113442>\
**Category:** Rails\
**Created:** [August 31, 2007, 4:18am UTC](https://www.ruby-forum.com/t/us-states-and-world-countries-selectors/113442 "2007-08-31T04:18:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhfs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b2d939/32.png) [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Post date:** [August 31, 2007, 4:18am UTC](https://www.ruby-forum.com/t/us-states-and-world-countries-selectors/113442/1 "2007-08-31T04:18:20Z")

</div>

Hello all!

I was just wondering, I need to build a signup form with US states and  
also  
world countries selector. Is there already a helper os something that  
implements or makes it easier to implement this for Rails (Rails is  
making  
me lazy!).

Btw, where could I get a list of world countries and US states? Is there  
any  
webservice for that ? Or just copy and paste from somewhere else?

Thanks in advance,

Marcelo.

---

<div class="post-metadata">

**Author:** ![mhfs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b2d939/32.png) [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Post date:** [August 31, 2007, 4:28am UTC](https://www.ruby-forum.com/t/us-states-and-world-countries-selectors/113442/2 "2007-08-31T04:28:22Z")

</div>

Marcelo de Moraes S. wrote:

> Btw, where could I get a list of world countries and US states? Is there  
> any webservice for that ? Or just copy and paste from somewhere else?

Google for the ISO standard 3166 - that’s the official list of country  
codes.  
ISO639 is the list of language codes, both 2-character and 3-character  
versions,  
depending on the revision of the standard. Both are covered in the  
IETF’s  
adaptations in RFC 3066, but check the ISO standards first.

Clifford H…
