# Engines 2.0/trunk with Rails 2.0

**URL:** <https://www.ruby-forum.com/t/engines-2-0-trunk-with-rails-2-0/122817>\
**Category:** Engines Development\
**Created:** [December 12, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/engines-2-0-trunk-with-rails-2-0/122817 "2007-12-12T14:15:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralphv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@ralphv](https://www.ruby-forum.com/u/ralphv)\
**Post date:** [December 12, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/engines-2-0-trunk-with-rails-2-0/122817/1 "2007-12-12T14:15:51Z")

</div>

Hi,

i’m gald to hear, that Engines make steps  
towards Rails 2.0, so i’m able to port my redMine  
plugins now ;o)

in my first test, i found these 2 bugs:

1. 

the ‘rake test:plugins:all PLUGIN=xxx’ task abort with an Error  
(full path shorted and replaced with \<…\>)

\*\* Invoke test:plugins:units (first\_time)  
\*\* Invoke test:plugins:setup\_plugin\_fixtures (first\_time)  
\*\* Invoke environment (first\_time)  
\*\* Execute environment  
\*\* Execute test:plugins:setup\_plugin\_fixtures  
rake aborted!  
undefined method `mirror_files_from' for Engines:Module <...>/vendor/plugins/engines/lib/engines/testing.rb:74:in`setup\_plugin\_fixtures’  
\<…\>/vendor/plugins/engines/lib/engines/testing.rb:71:in `each' <...>/vendor/plugins/engines/lib/engines/testing.rb:71:in`setup\_plugin\_fixtures’  
\<…\>/vendor/plugins/engines/tasks/engines.rake:143

1. 

if i reload a view from a plugin-based controller, i get the following  
error every time:

A copy of ApplicationController has been removed from the module tree  
but is still active!  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active\_support/dependencies.rb:237:in  
`load_missing_constant' /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:469:in`const\_missing’  
app/controllers/application.rb:31:in `user\_setup’

i don’t found a working ticket-system for rails-engines, so i think  
this list is the best way to report. please correct me, if i’m wrong.  
if you need some more info’s, please let me know.

thanks for your work  
Ralph

---

<div class="post-metadata">

**Author:** ![ralphv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@ralphv](https://www.ruby-forum.com/u/ralphv)\
**Post date:** [December 12, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/engines-2-0-trunk-with-rails-2-0/122817/2 "2007-12-12T17:28:32Z")

</div>

> > undefined method `mirror_files_from' for Engines:Module <...>/vendor/plugins/engines/lib/engines/testing.rb:74:in `setup\_plugin\_fixtures’  
> > it should be moved back to the Engines module

I’ve done this.

[http://svn.rails-engines.org/engines/trunk/lib/engines.rb](http://svn.rails-engines.org/engines/trunk/lib/engines.rb)  
[http://svn.rails-engines.org/test/engines/rails\_2.0/test/unit/testing\_test.rb](http://svn.rails-engines.org/test/engines/rails_2.0/test/unit/testing_test.rb)

–  
sven fuchs removed\_email\_address@domain.invalid  
artweb design [http://www.artweb-design.de](http://www.artweb-design.de)  
grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone)  
d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile)

---

<div class="post-metadata">

**Author:** ![ralphv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@ralphv](https://www.ruby-forum.com/u/ralphv)\
**Post date:** [December 12, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/engines-2-0-trunk-with-rails-2-0/122817/3 "2007-12-12T17:25:00Z")

</div>

Hi Ralph,

Am 10.12.2007 um 22:09 schrieb Ralph Vater:

> undefined method `mirror_files_from' for Engines:Module <...>/vendor/plugins/engines/lib/engines/testing.rb:74:in `setup\_plugin\_fixtures’

I guess I’ve missed the fact that this method is used here (a test  
case is also missing). mirror\_files\_from is now a method on  
Engines::Assets, which of course doesn’t make a lot of sense. I guess  
it should be moved back to the Engines module or probably an  
Engines::Filetools module that communicates the purpose of this method?

> app/controllers/application.rb:31:in `user\_setup’  
> Not sure about this one. But it’s probably unrelated to Engines itself  
> but related to the fact that Engines now rely on Rails’ own plugin  
> mechanisms. I seem to remember that I’ve seen an error like this when  
> references to a class are saved somewhere and the class then gets  
> reloaded in development mode while the reference holding object  
> doesn’t. Is that the case here? Does your application somehow save a  
> reference of the ApplicationController?

Thanks for the report!

–  
sven fuchs removed\_email\_address@domain.invalid  
artweb design [http://www.artweb-design.de](http://www.artweb-design.de)  
grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone)  
d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile)
