# Engines Development

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/engines-dev/10.md?page=1

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 2

---

## [Reverting plugin migrations](https://www.ruby-forum.com/t/reverting-plugin-migrations/131009)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 6\
**Last updated:** [March 5, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/reverting-plugin-migrations/131009 "2008-03-05T22:26:11Z")

</div>

Hi all, I’ve added quite a bit of default data population to a migration script on an engine I’m working on. When I try to revert to a previous version, it doesn’t work as I expected it to. With rails app migration…

---

## [Allow magic code mixing for application controller](https://www.ruby-forum.com/t/allow-magic-code-mixing-for-application-controller/130035)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 4\
**Last updated:** [February 26, 2008, 11:59am UTC](https://www.ruby-forum.com/t/allow-magic-code-mixing-for-application-controller/130035 "2008-02-26T11:59:00Z")

</div>

Engines’ magic code mixing is mega-cool, but unfortunately it doesn’t apply to the application controller because of the non-standard file- naming application.rb, which misses the “\_controller” bit and doesn’t match t…

---

## [Additional plugin migrations rake tasks](https://www.ruby-forum.com/t/additional-plugin-migrations-rake-tasks/129542)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 4\
**Last updated:** [February 20, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/additional-plugin-migrations-rake-tasks/129542 "2008-02-20T19:41:41Z")

</div>

I’d like to add these rake tasks to Engines: http://pastie.caboo.se/154218 The background is that we could use something like this for Mephisto to give users a way to avoid version number clashes with their plugin mi…

---

## [Making Rails 2.0 reload engine controllers and models](https://www.ruby-forum.com/t/making-rails-2-0-reload-engine-controllers-and-models/129584)

<div class="topic-metadata">

**Author:** [@mateo\_murphy](https://www.ruby-forum.com/u/mateo_murphy)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/making-rails-2-0-reload-engine-controllers-and-models/129584 "2008-02-19T21:26:43Z")

</div>

Hello, I’ve been working on a solution for making rails reload engine controllers and models. Initially, after a fair amount of googling, I came up with the following, in development.rb: config.after\_initialize { De…

---

## [Mongrel 1.1.3 errors?](https://www.ruby-forum.com/t/mongrel-1-1-3-errors/129392)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 5:05am UTC](https://www.ruby-forum.com/t/mongrel-1-1-3-errors/129392 "2008-02-18T05:05:19Z")

</div>

All my production Rails/Engines apps died last week. Suddenly, and without code change on my part. I think I’ve narrowed the problem down to my hosting provider upgrading from Mongrel 1.1.1 to 1.1.3. Upgrading my d…

---

## [Help with a noob](https://www.ruby-forum.com/t/help-with-a-noob/128707)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 2:37am UTC](https://www.ruby-forum.com/t/help-with-a-noob/128707 "2008-02-11T02:37:53Z")

</div>

Hi all, I’m a noob to creating my own plugins, and I could use a hand. I’ve only developed basic rails apps, and several advanced J2EE apps. I understand how my plugin structure mirrors the rails app mvc in the ba…

---

## [Plugin attributes for config values](https://www.ruby-forum.com/t/plugin-attributes-for-config-values/127904)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 2\
**Last updated:** [February 2, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/plugin-attributes-for-config-values/127904 "2008-02-02T13:49:16Z")

</div>

A couple of discussions later I propose the attached patch for Engines. This super-minimalistic approach allows to do two things: Plugin users can set plugin attribute values in a file \[plugin\_dir\]/ config.yml. If th…

---

## [Engines as Mephisto Plugins](https://www.ruby-forum.com/t/engines-as-mephisto-plugins/127725)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 7\
**Last updated:** [February 1, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/engines-as-mephisto-plugins/127725 "2008-02-01T15:18:57Z")

</div>

Hi James, like I mentioned a while back Rick asked me regarding Engines as a basis for Mephisto plugins. Mephisto comes with its own implementation of plugins that share controllers, views, routes, schemas (migration…

---

## [Rails2.0 not reloading engine controllers/models](https://www.ruby-forum.com/t/rails2-0-not-reloading-engine-controllers-models/122834)

<div class="topic-metadata">

**Author:** [@ArtSSSSras\_SSSSlaju](https://www.ruby-forum.com/u/ArtSSSSras_SSSSlaju)\
**Replies:** 16\
**Last updated:** [January 25, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/rails2-0-not-reloading-engine-controllers-models/122834 "2008-01-25T13:06:43Z")

</div>

Hello, Rails 2.0.1 does not reload engine-based plugin controllers and models in development mode. You have to restart mongrel to get them reloaded. Anyone else has this issue?

---

## [\[patch\] rake 0.7.3 to 0.8.x broke engines rake redefine\_task](https://www.ruby-forum.com/t/patch-rake-0-7-3-to-0-8-x-broke-engines-rake-redefine-task/124560)

<div class="topic-metadata">

**Author:** [@jdunneuk](https://www.ruby-forum.com/u/jdunneuk)\
**Replies:** 4\
**Last updated:** [January 3, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/patch-rake-0-7-3-to-0-8-x-broke-engines-rake-redefine-task/124560 "2008-01-03T18:39:33Z")

</div>

Hi, The collaboa site for engines is having serious problems, so I’m posting here. As mentioned previously, rake 0.8.x broke the code for redefining rake tasks. The problem is that in rake 0.8.x, the first argument …

---

## [Docs / Help for upgrading to Rails 2.0 / Engines 2.0](https://www.ruby-forum.com/t/docs-help-for-upgrading-to-rails-2-0-engines-2-0/124529)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 0\
**Last updated:** [December 29, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/docs-help-for-upgrading-to-rails-2-0-engines-2-0/124529 "2007-12-29T21:34:02Z")

</div>

Just posted my gotchas for upgrading a couple projects to Rails 2.0… http://nshb.net/engines-2-0-and-rails-2-0-upgrade-gotchas

---

## [Code\_paths (was: Re: Rails.plugins\[:plugin\_name\] comments and patch)](https://www.ruby-forum.com/t/code-paths-was-re-rails-plugins-plugin-name-comments-and-patch/124265)

<div class="topic-metadata">

**Author:** [@arjackson](https://www.ruby-forum.com/u/arjackson)\
**Replies:** 0\
**Last updated:** [December 27, 2007, 7:24am UTC](https://www.ruby-forum.com/t/code-paths-was-re-rails-plugins-plugin-name-comments-and-patch/124265 "2007-12-27T07:24:34Z")

</div>

I should add… this fix (self.code\_paths instead of Rails\[:plugin\_name\].code\_paths) seemed to make it not crash and did store the path in Rails.plugins\[:plugin\_name\]. But, it just didn’t work. I eventually traced it…

---

## [Rails.plugins\[:plugin\_name\] comments and patch](https://www.ruby-forum.com/t/rails-plugins-plugin-name-comments-and-patch/124263)

<div class="topic-metadata">

**Author:** [@arjackson](https://www.ruby-forum.com/u/arjackson)\
**Replies:** 0\
**Last updated:** [December 27, 2007, 6:08am UTC](https://www.ruby-forum.com/t/rails-plugins-plugin-name-comments-and-patch/124263 "2007-12-27T06:08:01Z")

</div>

Hi all, I have some code in a plugin’s init.rb that used Rails.plugins\[:plugin\_name\].code\_paths += … I spent a bit of time hacking engines to get it working, then I read Sven’s helpful message at Engines 2ish / Rai…

---

## [Problems with Rake 0.8.0 and Engines 2.0](https://www.ruby-forum.com/t/problems-with-rake-0-8-0-and-engines-2-0/123995)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [December 23, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/problems-with-rake-0-8-0-and-engines-2-0/123995 "2007-12-23T19:32:57Z")

</div>

Anyone else run into this? undefined method last' for {}:Hash /Library/Ruby/Gems/1.8/gems/rake-0.8.0/lib/rake.rb:1654:inresolve\_args’ /Users/tony/src/clickcaster/vendor/plugins/engines/tasks/engines.rake:9:in redefine…

---

## [Rake db:migrate failing](https://www.ruby-forum.com/t/rake-db-migrate-failing/123962)

<div class="topic-metadata">

**Author:** [@ben\_wiseley](https://www.ruby-forum.com/u/ben_wiseley)\
**Replies:** 5\
**Last updated:** [December 23, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-failing/123962 "2007-12-23T17:10:02Z")

</div>

I’m running/developing some sites on Rails 2.0.2 and some on 1.2.6. I updated to 2.0.2 last night and, while the 1.2.6 sites (using engines) still seem to run perfectly (after replacing ‘require\_gem’ with ‘gem’ - whi…

---

## [Engines 2ish / Rails 2.0.1](https://www.ruby-forum.com/t/engines-2ish-rails-2-0-1/123113)

<div class="topic-metadata">

**Author:** [@Dylan\_S](https://www.ruby-forum.com/u/Dylan_S)\
**Replies:** 3\
**Last updated:** [December 22, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/engines-2ish-rails-2-0-1/123113 "2007-12-22T22:36:37Z")

</div>

This is on an app that successfully runs Engines 1.2, and Rails 1.2.6… but ported to Engines 2.0.0-RC1, and Rails 2.0.1. Added the engines boot.rb line to environment.rb after the existing boot require. The engines i…

---

## [Problems with engine loading and routes w\\ Rails 2.0](https://www.ruby-forum.com/t/problems-with-engine-loading-and-routes-w-rails-2-0/122833)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 5\
**Last updated:** [December 12, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/problems-with-engine-loading-and-routes-w-rails-2-0/122833 "2007-12-12T20:57:43Z")

</div>

I’m trying to map.from\_plugin :my\_engine in the routes.rb for my application The problem appears to be that at the time routes.rb has been processed the Engines plugin itself is loaded but my Engine has not. On line…

---

## [Engines 2.0/trunk with Rails 2.0](https://www.ruby-forum.com/t/engines-2-0-trunk-with-rails-2-0/122817)

<div class="topic-metadata">

**Author:** [@ralphv](https://www.ruby-forum.com/u/ralphv)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/engines-2-0-trunk-with-rails-2-0/122817 "2007-12-12T17:25:00Z")

</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: the ‘rake test:plugins:all PLUGIN=xxx’ task abort with an E…

---

## [Model loading test and different load\_paths orders](https://www.ruby-forum.com/t/model-loading-test-and-different-load-paths-orders/122567)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 0\
**Last updated:** [December 9, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/model-loading-test-and-different-load-paths-orders/122567 "2007-12-09T15:59:44Z")

</div>

I think that I’ve found the problem that causes the last test in model\_and\_lib\_test.rb to fail. http://svn.rails-engines.org/test/engines/rails\_2.0/test/unit/model\_and\_lib\_test.rb The problem is: with two models Somet…

---

## [Engines for Rails 2.0 test application](https://www.ruby-forum.com/t/engines-for-rails-2-0-test-application/121899)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 7\
**Last updated:** [December 2, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/engines-for-rails-2-0-test-application/121899 "2007-12-02T23:17:22Z")

</div>

Hi James, hi all, Like we agreed on #engines last week I’ve worked on Engines for Rails 2.0 (still using RC1) this weekend. I’ve commited my work here: http://svn.artweb-design.de/engines/tests/rails\_2\_0 Please crit…

---

## [Exploration of possible refactorings for Rails 2.0](https://www.ruby-forum.com/t/exploration-of-possible-refactorings-for-rails-2-0/121438)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 7\
**Last updated:** [November 28, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/exploration-of-possible-refactorings-for-rails-2-0/121438 "2007-11-28T21:14:49Z")

</div>

\[sending this to engine-developers, please advise me if this is for some reason not correct\] Hi John, to get a better overview how things are interrelated in the current implementation I’ve gone through a first coars…

---

## [Rails 2.0PR is out, is Engines 2.0 on it's way?](https://www.ruby-forum.com/t/rails-2-0pr-is-out-is-engines-2-0-on-its-way/116190)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 12:04pm UTC](https://www.ruby-forum.com/t/rails-2-0pr-is-out-is-engines-2-0-on-its-way/116190 "2007-10-22T12:04:16Z")

</div>

Hey James et all, Curious if you have been doing any work with EDGE yet, or even the recently announced 2.0PR. Looks like some really sweet improvements have been made. Although I still like my ToolbawksPacker over …

---

## [Routes?](https://www.ruby-forum.com/t/routes/115858)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 3\
**Last updated:** [September 29, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/routes/115858 "2007-09-29T22:45:23Z")

</div>

Any tips on adding plugin specific routes? I’d like to add them directly in my plugin if possible.

---

## [\[Engine Testing\] Dependency issue with ApplicationController](https://www.ruby-forum.com/t/engine-testing-dependency-issue-with-applicationcontroller/87491)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/engine-testing-dependency-issue-with-applicationcontroller/87491 "2007-09-25T23:12:03Z")

</div>

I seem to be having a dependency issue when running my test while applying a mixin implemented by an engine into my Application controller. I found a work around but wanted to post the problem, cause and workarounds i…

---

## [Engines.current small useful patch](https://www.ruby-forum.com/t/engines-current-small-useful-patch/82467)

<div class="topic-metadata">

**Author:** [@Samuel\_W](https://www.ruby-forum.com/u/Samuel_W)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/engines-current-small-useful-patch/82467 "2007-09-25T22:34:31Z")

</div>

Hello. I wrote some code that I use to simplify including images. This function needs to know about engines as it is used within engine views, and can access images within the engine public repository. I have made a …

---

## [Proposal for generic matching of names in dependency autoloa](https://www.ruby-forum.com/t/proposal-for-generic-matching-of-names-in-dependency-autoloa/112621)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [August 21, 2007, 3:23pm UTC](https://www.ruby-forum.com/t/proposal-for-generic-matching-of-names-in-dependency-autoloa/112621 "2007-08-21T15:23:26Z")

</div>

Hi engines developers, I’m working on a project that uses Cells extensively (http://nick.smt.de/trac/nick/wiki/Cells). Cells relies on Engines in turn. I hit a wall when I tried to make cells load a class tree of c…

---

## [Application-wide layouts?](https://www.ruby-forum.com/t/application-wide-layouts/103732)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 5\
**Last updated:** [July 27, 2007, 3:40am UTC](https://www.ruby-forum.com/t/application-wide-layouts/103732 "2007-07-27T03:40:58Z")

</div>

Hey all. I’m making use of Engines-based plugins in several of my sites. I have a wiki, a login engine, a CRM tool… Right now, I install the plugin(s), then have to create a mask controller containing a layout “sta…

---

## [Engines bug breaks functional tests with datetime\_toolbocks](https://www.ruby-forum.com/t/engines-bug-breaks-functional-tests-with-datetime-toolbocks/107371)

<div class="topic-metadata">

**Author:** [@Geoff\_D](https://www.ruby-forum.com/u/Geoff_D)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 12:37am UTC](https://www.ruby-forum.com/t/engines-bug-breaks-functional-tests-with-datetime-toolbocks/107371 "2007-06-21T00:37:55Z")

</div>

This is following up on http://lists.toolbocks.com/pipermail/ toolbocks-user/2007-May/000027.html (datetime\_toolbocks fails in functional tests) Here’s the problem: Engines causes plugins to be loaded in 2 phases. F…

---

## [Testing path problems](https://www.ruby-forum.com/t/testing-path-problems/106143)

<div class="topic-metadata">

**Author:** [@ben\_wiseley](https://www.ruby-forum.com/u/ben_wiseley)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/testing-path-problems/106143 "2007-06-06T23:16:51Z")

</div>

I was converting an existing rails app to an engine… that worked fine just put everything in an engine (controllers, models, etc.). All tests passed if they were in the engine but, for functional tests, outside of the …

---

## [Engines friendly framework from scratch](https://www.ruby-forum.com/t/engines-friendly-framework-from-scratch/90070)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/engines-friendly-framework-from-scratch/90070 "2007-03-25T19:31:52Z")

</div>

Hi, I’ve been thinking about web frameworks because I will write a small one in JavaScript to share code between client and server. I would like to be able layer an application like engines allow in Rails. What would…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/engines-dev/10.md)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/engines-dev/10.md?page=2)
