# undefined method \`text\_field\_with\_auto\_complete'

**URL:** <https://discuss.rubyonrails.org/t/undefined-method-text-field-with-auto-complete/43584>\
**Category:** rubyonrails-talk\
**Created:** [June 18, 2009, 5:48pm UTC](https://discuss.rubyonrails.org/t/undefined-method-text-field-with-auto-complete/43584 "2009-06-18T17:48:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruxpin](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@ruxpin](https://discuss.rubyonrails.org/u/ruxpin)\
**Post date:** [June 18, 2009, 5:48pm UTC](https://discuss.rubyonrails.org/t/undefined-method-text-field-with-auto-complete/43584/1 "2009-06-18T17:48:32Z")

</div>

Dear all: I got the error in my rails 2.2.2 project on ma os x leopard. i did as follow: script/plugin install auto\_complete but when i start the server and try to approach the page which used the auto\_complete, it can't find the helper method as the error told: "undefined method `text\_field\_with\_auto\_complete' ", than i try this in script/console helper.methods i check the list and "text\_field\_with\_auto\_complete" can't be found, so i try helper.extend(AutoCompleteMacrosHelper) than it shows in the helper.methods list but i don't know how to fix this problem btw: auto\_complete\_for is in ActionController::Base.methods, i guess it must have something to do with second line in the init.rb, since first line get his jod done /auto\_complete/init.rb ActionController::Base.send :include, AutoComplete ActionController::Base.helper AutoCompleteMacrosHelper

could any body kindly tell me how to fix it(or what did i do wrong), thx.

---

<div class="post-metadata">

**Author:** ![ruxpin](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@ruxpin](https://discuss.rubyonrails.org/u/ruxpin)\
**Post date:** [June 19, 2009, 12:11pm UTC](https://discuss.rubyonrails.org/t/undefined-method-text-field-with-auto-complete/43584/2 "2009-06-19T12:11:33Z")

</div>

no body ever met this situation?
