# Country\_select, how edit the list?

**URL:** <https://www.ruby-forum.com/t/country-select-how-edit-the-list/125743>\
**Category:** Rails\
**Created:** [January 11, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/country-select-how-edit-the-list/125743 "2008-01-11T17:04:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mrpolygon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@Mrpolygon](https://www.ruby-forum.com/u/Mrpolygon)\
**Post date:** [January 11, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/country-select-how-edit-the-list/125743/1 "2008-01-11T17:04:36Z")

</div>

Hi! I have created an abstract submission form for a world wide  
congress using Ruby on rails. Every thing works fine except that today  
I got an email from some one from Taiwan that didn’t like that her  
country was a province of China. Apparently Taiwan is listed as  
“Taiwan, Province of China” in the country selection list that Rails  
provides. So my qeustion is, it there some way that I can alter the  
country list so that people from Taiwan don’t feel offended?

Thanks in advance  
Fredrik

---

<div class="post-metadata">

**Author:** ![Mrpolygon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@Mrpolygon](https://www.ruby-forum.com/u/Mrpolygon)\
**Post date:** [January 11, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/country-select-how-edit-the-list/125743/2 "2008-01-11T22:13:00Z")

</div>

I’d imagine that if you saved the countries in a hash, that would be  
the first place to check. Or if its’ stored in say a country  
database, just pop into the db and update that countries info.

---

<div class="post-metadata">

**Author:** ![Mrpolygon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@Mrpolygon](https://www.ruby-forum.com/u/Mrpolygon)\
**Post date:** [January 12, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/country-select-how-edit-the-list/125743/3 "2008-01-12T20:24:48Z")

</div>

You can change the COUNTRIES constant that is defined in  
ActionView::Helpers::FormOptionsHelper module:

ActionView::Helpers::FormOptionsHelper::COUNTRIES[ActionView::Helpers::FormOptionsHelper::COUNTRIES.index(“Taiwan,  
Province of China”)] = “Taiwan”

hope it’s help.  
Bojan
