#47 ✓resolved

acts_as_ferret generetas strange erros in production mode for Rails 2.0.1

Reported by Jens | February 13th, 2010 @ 12:38 AM


Im using acts_as_ferret 0.4.3 with ferret server 0.11.6 with Ruby 1.8.6 and Rails 2.0.1 and it successfully works in development mode.
Into production mode when running any action action related to a model for whom ferret was enabled (acts_as_ferret :fields => [..]) I get an error like :

[[LoadError]] (Expected .../app/models/ModelName.rb to define [[ModelName]]): of course inside [[ModelName]].rb I have the [[ModelName]] class defined and inheriting [[ActiveRecord]]::Base.

I might be wrong but all my searches came down to ferret.
If I remove the acts_as_ferret :fiels line from my Models everuthing works fine.

Please tell me if anyone else encountered the same behavior when moving to Rails >2.0

(it worked fine for Rails 1.2.3 and Rails 1.2.5)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket