# Autocomplete error please help

**URL:** <https://discuss.rubyonrails.org/t/autocomplete-error-please-help/28281>\
**Category:** rubyonrails-talk\
**Created:** [April 20, 2008, 3:18pm UTC](https://discuss.rubyonrails.org/t/autocomplete-error-please-help/28281 "2008-04-20T15:18:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [April 20, 2008, 3:18pm UTC](https://discuss.rubyonrails.org/t/autocomplete-error-please-help/28281/1 "2008-04-20T15: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.
