I have edge rails in /vendor/rails on DreamHost, but when running
dispatch.fcgi I get the following error in my logs:
[02/May/2006:08:52:32 :: 29365] terminated gracefully
[02/May/2006:08:53:53 :: 19526] starting
[02/May/2006:08:53:54 :: 19526] Dispatcher failed to catch: undefined
method `clear_connection_cache!’ for ActiveRecord::Base:Class
(NoMethodError)
…/config/…/vendor/rails/activerecord/lib/active_record/base.rb:1138:in
method_missing' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:76:in
reset_after_dispatch’
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:46:in
dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in
process_request’
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:in
process!' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in
each_cgi’
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in
process!' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:22:in
process!’
./dispatch.fcgi:35
I get the same printed to the shell when running dispatch.rb too.
It appears to me that it’s trying to use the gem version of rails on DH
and not the copy I have in /vendor/rails.
Any ideas on why this is happening, or things to check, would be
appreciated.
Thanks in advance.