Closed damianham closed 13 years ago
Not sure what the cause is - is the new workstation the only change? There hasn't been any code changes? I've just tried on my relatively new Snow Leopard setup on Rails 2.3.3 and Mongrel, and it works fine, as far as I can tell.
Completely unrelated, but upgrading to 2.3.4 is recommended, there's a vulnerability in Rails in earlier 2.x versions.
Yes the new workstation is the only change - I have reverted back to my other disk so I can carry on working. My old disk uses Ruby 1.8.7 BTW not ruby enterprise 1.8.6 but that's probably a red herring. I'll upgrade Rails thanks.
I am getting an undefined method error for sphinx_scope I am using ruby enterprise version 1.8.6-20090421
this is what is in my environment.rb
config.gem( 'freelancing-god-thinking-sphinx', :lib => 'thinking_sphinx', :version => '1.2.9', :source => 'http://gems.github.com' )
config.gem 'mislav-will_paginate', :version => '~> 2.3.11', :lib => 'will_paginate',
:source => 'http://gems.github.com'
here's my gem list actionmailer (2.3.3, 2.3.2) actionpack (2.3.3, 2.3.2) activerecord (2.3.3, 2.3.2) activeresource (2.3.3, 2.3.2) activesupport (2.3.3, 2.3.2) capistrano (2.5.8) cassandra (0.5.6.2) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) fastthread (1.0.7) freelancing-god-thinking-sphinx (1.2.9) gem_plugin (0.2.3) haml (2.2.3) highline (1.5.1) hpricot (0.8.1) htmldoc (0.2.1) httpclient (2.1.5.2) image_science (1.2.1) json (1.1.9) memcached (0.16.3) mislav-will_paginate (2.3.11) mms2r (2.3.0) mongrel (1.1.5) mysql (2.7) net-scp (1.0.2) net-sftp (2.0.2) net-ssh (2.0.15) net-ssh-gateway (1.0.1) passenger (2.2.5, 2.2.1) postgres (0.7.9.2008.01.28) rack (1.0.0, 0.9.1) rails (2.3.3, 2.3.2) rake (0.8.4) RubyInline (3.8.3) soap4r (1.5.8) sqlite3-ruby (1.2.4) thrift (0.0.810255.1) tmail (1.2.3.1)
ZenTest (4.1.4)
and here's the stack trace
=> Booting Mongrel => Rails 2.3.3 application starting on http://0.0.0.0:3000 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/base.rb:1959:in
method_missing_without_paginate': undefined method
sphinx_scope' for #Class:0x3913590 (NoMethodError) from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.11/lib/will_paginate/finder.rb:168:inmethod_missing' from /media/disk/var/www/xoonoo.com/current/app/models/user.rb:98 from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:380:in
load_without_new_constant_marking' from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:380:inload_file' from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in
new_constants_in' from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:379:inload_file' from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:259:in
require_or_load' from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:425:inload_missing_constant' ... 35 levels... from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rails-2.3.3/lib/commands/server.rb:84 from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from script/server:3I had this working before but I have just moved to a new workstation and I am trying to setup my environment and now I get this error. Any ideas ?