# Autocomplete error please help

**URL:** <https://www.ruby-forum.com/t/autocomplete-error-please-help/135285>\
**Category:** Rails\
**Created:** [April 20, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/autocomplete-error-please-help/135285 "2008-04-20T17:18:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit2584](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Post date:** [April 20, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/autocomplete-error-please-help/135285/1 "2008-04-20T17:18:26Z")

</div>

Hi,  
I need to implement auto complete in my form.  
I have installed autocaomplete for rails 2.0  
in the

person form i have  
\<%form\_for(:person,:url=\>{:action =\>“submit\_tag”} do p %\>  
First Name:\<%= text\_field\_with\_auto\_complete p, “first\_name” %\>  
…  
\<%end%\>

in the person controller i have

auto\_complete\_for :person, :first\_name

also in the application layout i have  
\<%= javascript\_include\_tag :defaults %\>

Now when i try to open the page the autocomplete does not work and i get  
the following:

line: 667  
char: 1  
Error : Object expected  
code: 0

Please tell me what is going wrong  
Thank you.
