# Fatal Errors with Rails 1.1.2 and Gem vs. Vendor Rails

**URL:** <https://www.ruby-forum.com/t/fatal-errors-with-rails-1-1-2-and-gem-vs-vendor-rails/93843>\
**Category:** Engines Development\
**Created:** [April 11, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/fatal-errors-with-rails-1-1-2-and-gem-vs-vendor-rails/93843 "2006-04-11T21:05:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [April 11, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/fatal-errors-with-rails-1-1-2-and-gem-vs-vendor-rails/93843/1 "2006-04-11T21:05:27Z")

</div>

Hi

Seemingly, there is a path issue when using Rails Engines with Rails  
1.1.2. The error appears if you have two different RubyGem version of  
Rails installed and want to use vendor rails (1.1.2).

OK, my setup is the following:

- I have the following Gem Rails versions installed: rails (1.1.2,  
1.0.0)
- I created a new application with “rails test” and set up the  
database
- I created the simplest possible database schema (one table “foos”  
with fields “id” and “txt”).
- I created a model class “Foo”
- I got the current Rails from Subversion (http://  
[dev.rubyonrails.org/svn/rails/branches/stable](http://dev.rubyonrails.org/svn/rails/branches/stable))
- I installed the latest Rails Engines version: http://svn.rails-  
[engines.org/engines/trunk](http://engines.org/engines/trunk)
- I configured it to run in “edge mode” and made it perform logging  
as described in the manual.

Then, I tried to run tests and get errors - ugh!

# ==8\<====================================================================

manuel 20:59:48 test $\> ruby test/unit/foo\_test.rb  
Engines 1.1 require\_or\_load: application\_helper  
Engines 1.1 require\_or\_load: application\_api  
Loaded suite test/unit/foo\_test  
Started  
E  
Finished in 0.359273 seconds.

1. Error:  
test\_truth(FooTest):  
NoMethodError: undefined method `clear_connection_cache!' for ActiveRecord::Base:Class /Users/manuel/Development/Rails/test/config/../vendor/rails/ activerecord/lib/active_record/base.rb:1129:in `method\_missing’  
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/  
active\_record/fixtures.rb:511:in `teardown’

1 tests, 1 assertions, 0 failures, 1 errors

# ==8\<====================================================================

It seems that Engines somehow makes the active\_support code load  
active\_record’s fixtures.rb from the Gems.

Of course, it is possible to remove the Rails 1.0 gems but I thought  
you would like to know that there seems to be something fishy inside  
the Engines path code.

Regards,

Manuel
