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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. On Jan 11, 8:03 am, Mrpolygon <mrpoly...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Jan 11, 5:03 pm, Mrpolygon <mrpoly...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---