Forum: Ruby on Rails autocompletion key value

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mikkel B. (Guest)
on 2006-01-31 17:21
Hi Guys,

I guess someone has done this before...

I need to use autocompletion to look up a list of values (think car
However, in the model I save the id of the brand, not the description.
(its not an option to lookup the id using the description after submit)

Has anyone done something like this?

I guess something with a hidden field or something could do the trick..

thanks in advance

This topic is locked and can not be replied to.