For my Ruby on Rails application, I have the Carmen gem installed in order to access country data and auto create country fields (for example in the mailing address field for the user).
However, for the purposes of this application, Puerto Rico needs to be considered a separate country. Sometime last year Carmen was updated to remove PR from the list of countries but I was wondering if there was a way to add it back.
Example of how I'm currently using Carmen:
<%= f.country_select :country_residence, prompt: ' ' %>
To enable
PR
as a country, create aconfig/carmen/world.yml
file with contents:Then create an initializer file
config/initializers/carmen.rb
and add this to it:To then remove
PR
from theUS
subregion list, create a fileconfig/carmen/world/us.yml
with contents: