# Acts\_As\_Ferret No Method Errors

**URL:** <https://www.ruby-forum.com/t/acts-as-ferret-no-method-errors/175305>\
**Category:** Ferret\
**Created:** [September 10, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-no-method-errors/175305 "2009-09-10T23:38:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnovah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/258eb7/32.png) [@gnovah](https://www.ruby-forum.com/u/gnovah)\
**Post date:** [September 10, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-no-method-errors/175305/1 "2009-09-10T23:38:00Z")

</div>

I’ve been trying to use Acts\_as\_Ferret, but all I can get are no method  
errors. For example, if I try in a rails console  
Item.find\_id\_by\_contents(“whatever”)  
it returns “NoMethodError: undefined method `find\_id\_by\_contents’ for  
#Class:0x4943140”. I do have acts\_as\_ferret in my model rb file, and  
the ferret gem installed.

I’m a newbie to rails. Is there a way I can check that I have aaf  
installed correctly? Doing “ruby script/plugin install  
svn://projects.jkraemer.net/acts\_as\_ferret/tags/stable/acts\_as\_ferret”  
as most tutorials say didn’t seem to do anything or produce anything in  
my vendor/plugins folder, so I downloaded a zip file from the github  
site and extracted it to vendor/plugins/acts\_as\_ferret.

Also I find it confusing what is the “current, correct way” to install  
and use aaf—is it now as an acts\_as\_ferret gem? And also has  
find\_id\_by\_contents now been replaced by find\_with\_ferret (which also  
didn’t work for me), or is it vice versa?

Please help, thanks!  
Nova

---

<div class="post-metadata">

**Author:** ![gnovah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/258eb7/32.png) [@gnovah](https://www.ruby-forum.com/u/gnovah)\
**Post date:** [January 4, 2010, 8:44pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-no-method-errors/175305/2 "2010-01-04T20:44:03Z")

</div>

you can only use the aaf to search for your rails applications. you have  
to run the plugin installation command while staying in the application  
dir you want to install it.

Nova P. wrote:

> I’ve been trying to use Acts\_as\_Ferret, but all I can get are no method  
> errors. For example, if I try in a rails console  
> Item.find\_id\_by\_contents(“whatever”)  
> it returns “NoMethodError: undefined method `find\_id\_by\_contents’ for  
> #Class:0x4943140”. I do have acts\_as\_ferret in my model rb file, and  
> the ferret gem installed.
> 
> I’m a newbie to rails. Is there a way I can check that I have aaf  
> installed correctly? Doing “ruby script/plugin install  
> svn://projects.jkraemer.net/acts\_as\_ferret/tags/stable/acts\_as\_ferret”  
> as most tutorials say didn’t seem to do anything or produce anything in  
> my vendor/plugins folder, so I downloaded a zip file from the github  
> site and extracted it to vendor/plugins/acts\_as\_ferret.
> 
> Also I find it confusing what is the “current, correct way” to install  
> and use aaf—is it now as an acts\_as\_ferret gem? And also has  
> find\_id\_by\_contents now been replaced by find\_with\_ferret (which also  
> didn’t work for me), or is it vice versa?
> 
> Please help, thanks!  
> Nova
