# Autocompletion key value

**URL:** <https://www.ruby-forum.com/t/autocompletion-key-value/53292>\
**Category:** Rails\
**Created:** [January 31, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/autocompletion-key-value/53292 "2006-01-31T16:21:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikkel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e36b37/32.png) [@mikkel](https://www.ruby-forum.com/u/mikkel)\
**Post date:** [January 31, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/autocompletion-key-value/53292/1 "2006-01-31T16:21:04Z")

</div>

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
