How can auto completion be done for a composite field ?
Concrete problem : Suppose the class Person with reference to a City
The City has a name and a postal code.
When entering a Person I want to enter the city in one text field that
shows a composition of the city name and the postal :
“city (postal)”. And this with auto complete (and should afterwards be
linked to the person object)
I don’t think that textfield_with_auto_complete solves the problem. any
ideas ? I read about auto_complete_field, but I didn’t find any concrete
sample code… I couldn’t figure out what to do in the partial, the
controller, the actual form