On Sat, Mar 31, 2007 at 10:43:12PM +0200, Harman Sandjaja wrote:
> Thank you for the reply Jens!
>
> What I'm trying to do is to only use the DRb server in the production
> environment (not in development nor test).
>
> So I removed the development and test sections in the
> config/ferret_server.yml
>
> But I'm getting this error instead:
> 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.
>
> Sorry for not being clear enough in my post earlier.
does changing the load method of ferret_server.rb (around line 18) to
this help?
# reads connection settings from config file
def load(file = "#{RAILS_ROOT}/config/ferret_server.yml")
config = DEFAULTS.merge(YAML.load(ERB.new(IO.read(file)).result))
if config = config[RAILS_ENV]
config[:uri] = "druby://#{config['host']}:#{config['port']}"
return config
end
return {} # add this line
end
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