1
Good afternoon, you guys!
I have the following scenario below: a model city where all the cities in Brazil are already registered, and I have a view Companies where I will register the companies and I want to create a autocomplete field for the city name. Remembering that the model city and Companies have no association, how could I do the autocomplete field? I’ve tried a Gem but it didn’t work.
Thanks for your help!
There is no association, but there is a city field in Companies as string ? I say this somewhere you have to persist this value
– Breno Perucchi
Correct Breno, that exists yes!
– João Henrique
Okay, I’ll put an example here.
– Breno Perucchi