[Ferret-talk] Ferret problems with Rails 1.2.1

John Leach
Wed, 24 Jan 2007 23:39:45 -0000

Hi,

In case it''s any use, I moved a Rails 1.1.6 site to 1.2.1 the other day
with Ferret 0.10.14 and it''s working fine, though it doesn''t
use
acts_as_ferret.

The dependencies system has changed in Rails 1.2, perhaps acts_as_ferret
is tickled by this.  You might want to try including the Ferret
libraries manually, in config/environment.rb.

http://weblog.rubyonrails.org/2006/8/11/reloading-revamped

John.
--
http://johnleach.co.uk

On Wed, 2007-01-24 at 20:19 +0100, donut donut wrote:
> Hi, I''ve just updated rails from 1.1.6 to 1.2.1 and I''m
getting the
> following errors whenever I load a page that uses a class that uses
> ferret.  I have ferret 0.10.13 and acts_as_ferret.  They were working
> fine before the upgrade.
>
> #<NameError: cannot remove Object::WildcardQuery>
>
["/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:423:in
> `remove_const''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:423:in
> `remove_constant''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:274:in
> `remove_unloadable_constants!''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:274:in
> `remove_unloadable_constants!''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:73:in
> `clear''",
> "/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:60:in
> `reset_application!''",
>
"/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:116:in
> `reset_after_dispatch''",
> "/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:51:in
> `dispatch''",
>
"/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/webrick_server.rb:113:in
> `handle_dispatch''",
>
"/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/webrick_server.rb:79:in
> `service''",
"/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in
> `service''",
"/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''",
> "/usr/local/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread''",
> "/usr/local/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread''",
> "/usr/local/lib/ruby/1.8/webrick/server.rb:95:in
`start''",
> "/usr/local/lib/ruby/1.8/webrick/server.rb:92:in
`start''",
> "/usr/local/lib/ruby/1.8/webrick/server.rb:23:in
`start''",
> "/usr/local/lib/ruby/1.8/webrick/server.rb:82:in
`start''",
>
"/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/webrick_server.rb:63:in
> `dispatch''",
>
"/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/commands/servers/webrick.rb:59",
> "/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
> `require''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in
> `new_constants_in''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
> `require''",
>
"/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/commands/server.rb:39",
> "/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
> `require''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in
> `new_constants_in''",
>
"/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
> `require''", "script/server:3"]
> [2007-01-23 11:50:29] ERROR `/market/list'' not found.
> 192.168.1.102 - - [23/Jan/2007:11:50:29 PST] "GET /market/list
HTTP/1.1"
> 404 283
> - -> /market/list
>
> Have you seen this?  Thanks.
>