# Auto\_complete not completing

**URL:** <https://www.ruby-forum.com/t/auto-complete-not-completing/139982>\
**Category:** Ruby\
**Created:** [June 9, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/auto-complete-not-completing/139982 "2008-06-09T20:24:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 9, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/auto-complete-not-completing/139982/1 "2008-06-09T20:24:29Z")

</div>

Here is what I have done.

1. In controller: auto\_complete\_for :search, :string
2. Layouts/search.rhtml \<%=javascript\_include\_tag :defaults %\>
3. Views/search: \<%= text\_field\_with\_auto\_complete ‘search’,  
‘string’, :size =\> 35 %\>

Any idea what I am missing?

Thank you,  
Lynn
