# Belongs\_to\_auto\_completer \> undefined method \`reflect\_on\_association'

**URL:** <https://www.ruby-forum.com/t/belongs-to-auto-completer-undefined-method-reflect-on-association/194283>\
**Category:** Rails\
**Created:** [September 2, 2010, 12:25am UTC](https://www.ruby-forum.com/t/belongs-to-auto-completer-undefined-method-reflect-on-association/194283 "2010-09-02T00:25:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [September 2, 2010, 12:25am UTC](https://www.ruby-forum.com/t/belongs-to-auto-completer-undefined-method-reflect-on-association/194283/1 "2010-09-02T00:25:31Z")

</div>

hi, im using

ModelAutoCompleterHelper  
([http://model-ac.rubyforge.org/classes/M](http://model-ac.rubyforge.org/classes/M) … elper.html)

and getting the error above.

now its working when i do it direclty in the controller of that model.  
eg: books & author \> running the code in the books controller/.

where its not working is when i put it eg into a “search”  
controller…i tried to pass in a instance variable, but that didnt  
help…

any ideas?

thx

---

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [September 2, 2010, 1:03pm UTC](https://www.ruby-forum.com/t/belongs-to-auto-completer-undefined-method-reflect-on-association/194283/2 "2010-09-02T13:03:37Z")

</div>

anyone? please help me. thx

---

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [September 2, 2010, 1:13pm UTC](https://www.ruby-forum.com/t/belongs-to-auto-completer-undefined-method-reflect-on-association/194283/3 "2010-09-02T13:13:00Z")

</div>

Is it just me or no one can see the link fully?

- A

---

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [September 2, 2010, 1:34pm UTC](https://www.ruby-forum.com/t/belongs-to-auto-completer-undefined-method-reflect-on-association/194283/4 "2010-09-02T13:34:05Z")

</div>

mh, sorry for that. here is the lib i use:

[http://model-ac.rubyforge.org/classes/ModelAutoCompleterHelper.html](http://model-ac.rubyforge.org/classes/ModelAutoCompleterHelper.html)

thx 4 checking!!!
