Forum: Ruby on Rails autocompletion key value

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C7669e8b5676f61fdf202230cbcf72d8?d=identicon&s=25 Mikkel Bruun (mikkel)
on 2006-01-31 16:21
Hi Guys,

I guess someone has done this before...

I need to use autocompletion to look up a list of values (think car
brands)
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

Mikkel
This topic is locked and can not be replied to.