# Autocomplete db query

**URL:** <https://www.ruby-forum.com/t/autocomplete-db-query/160602>\
**Category:** Rails\
**Created:** [February 18, 2009, 3:10am UTC](https://www.ruby-forum.com/t/autocomplete-db-query/160602 "2009-02-18T03:10:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [February 18, 2009, 3:10am UTC](https://www.ruby-forum.com/t/autocomplete-db-query/160602/1 "2009-02-18T03:10:54Z")

</div>

How can I get the autocomplete to get the ID of the item and submit  
that instead to make a many to many relationship.
