thecodecrate / city-state

Simple ruby gem to create form lists with cities and states
MIT License
306 stars 135 forks source link

Renaming a city or Delete city #43

Open mavivi95 opened 4 years ago

mavivi95 commented 4 years ago

Hello, I have a problem with the gem. I want to rename and delete some city, becouse these are wrong, but when I try this the gem doesnt work, I created the file city-loockup.yml but this didnt work is so frustrating becouse the gem is so good. I had not problem change the state or the countries, is possible to rename, add or delete. But I cant with the cities.

CO: NAR: "Anganoy": "" "Buga": "" "Cartago": "" "Chaparral": "" "Girardot": "" "Imues": "La Union" "Alban": "Alban" "Aldana": "Aldana" "Ancuya": "Ancuya"

For example sometimes the cities Anganoy, Buga, Cartago, Chaparral and Girardot are delete but sometimes dont. And never I can created the cities Alban, Aldana, Ancuya.

loureirorg commented 4 years ago

There's a typo on your filename. It should be city-lookup.yml, not city-loockup.yml (you put an extra "c").

mavivi95 commented 4 years ago

Thanks so much for your answer. Oww, I am sorry .. I wrote wrong the menssage , effectiblely I named city-lookup.yml to the file am sure of this but this dont work ... Is so weird becouse sometimes the same code go well but sometimes not. I also tried the line CS.set_cities_lookup_file('new-city-names.yml') and this only returned nill.

I achieved to change the name of contries and states but not with cities.

Please, I will so gratefull if you can help me.

image

duduribeiro commented 9 months ago

@mavivi95 I think you are facing the same problem as me on #67

I've opened a PR to fix it on #68