# Substitute collection\_select for an ajax autocomplete

**URL:** <https://www.ruby-forum.com/t/substitute-collection-select-for-an-ajax-autocomplete/103740>\
**Category:** Rails\
**Created:** [May 9, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/substitute-collection-select-for-an-ajax-autocomplete/103740 "2007-05-09T20:39:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![archangel77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6a8cbe/32.png) [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Post date:** [May 9, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/substitute-collection-select-for-an-ajax-autocomplete/103740/1 "2007-05-09T20:39:29Z")

</div>

I want to substitute my collection\_select for an autocomplete field. The  
problem is that I need the id of the record found afterwards in order to  
save my current form to the database.  
I can do it by hand but is there a plugin that does this already? Maybe  
a good post that will give me good tips on it?  
Thanks for your help.
