# Acts as ferret not working in dev

**URL:** <https://www.ruby-forum.com/t/acts-as-ferret-not-working-in-dev/178857>\
**Category:** Rails\
**Created:** [November 12, 2009, 11:54am UTC](https://www.ruby-forum.com/t/acts-as-ferret-not-working-in-dev/178857 "2009-11-12T11:54:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [November 12, 2009, 11:54am UTC](https://www.ruby-forum.com/t/acts-as-ferret-not-working-in-dev/178857/1 "2009-11-12T11:54:14Z")

</div>

Hi,

I have acts as ferret working ok on the production server with the built  
in drb server.

Locally i can get the server running ok but get the following errors  
when trying to run a search within an app

undefined method `find_with_ferret' for #<Class:0x2f4c3e0> undefined method`ferret\_rank=’ for #Product:0x302643c

Using the console the search actually returns the expected the results  
which is baffling me a bit. So  
Product.find\_with\_ferret(‘test’) will work in the console but not in the  
application.

I have the same version of ferret locally as i do on the production  
server.  
I can rebuild the indexes ok.  
The indexes i have are sharedindex, see below,

ActsAsFerret::define\_index(‘shared’,  
:models =\> {  
Product =\> {:fields =\> [:name, :desc, :meta\_keywords, :meta\_desc,  
:manufacturer\_name],:remote =\> true},  
HostApplication =\> {:fields =\> [:name, :desc, :meta\_keywords,  
:meta\_desc], :remote =\> true},  
Manufacturer =\> {:fields =\> [:name, :desc, :meta\_keywords,  
:meta\_desc], :remote =\> true},  
Category =\> {:fields =\> [:name, :desc, :meta\_keywords, :meta\_desc],  
:remote =\> true}  
}  
)

Has anybody got any ideas whats wrong? Ive searched around google with  
no joy. My dev env is mac, ruby 1.8.7, Rails 2.3.2,

JB
