On Sat, Mar 31, 2007 at 03:16:04AM +0200, Harman Sandjaja wrote:
> Hello,
> 
> I have been trying to set up the remote indexing for acts_as_ferret and
> followed the guide here:
> http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer
> I added :remote => true to my models and then specified host and port
> for the production environment.
> 
> After defining the host/port for production, I tried to run my
> development server and received the following error:
> vendor/plugins/acts_as_ferret/lib/act_methods.rb:66:in `acts_as_ferret':
> You have a nil object when you didn't expect it! (NoMethodError)
> You might have expected an instance of Array.
> 
> Isn't it supposed to work just fine even though we don't specify neither
> the development nor the test environment in the ferret_server.yml?
> 
> Anyways, I then decided to specify development environment in the
> ferret_server.yml
> Here is how it's setup:
> development:
>   host: localhost
>   port: 3000 (my rails app port)

I guess that's the problem, this port is *not* the rails app port, but
the port the DRb server will listen on. it needs to be a free, unused
port on the machine where the DRb server should run. Also be sure to
start the drb server with script/ferret_start .

Jens

-- 
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to