I’m highly interested in getting a working Engines setup running on
Rails 2.0 as soon as possible. I have convinced a customer to use
Engines to slice up a huge Rails app but he wants it to run Rails 2.0
I already mailed with Josh F. who wrote the “initial hack”
posted here: http://dev.rails-engines.org/engines-plugin/tickets/267
and he kindly send me his entire Engines plugin directory.
I can’t seem to get it working though at all. Basically I’ve set up a
fresh Rails app and added the Engines::PluginLoader like given in the
ticket above. In environment.rb I added below the boot.rb require line:
require File.join(File.dirname(FILE), ‘…/vendor/plugins/engines/
And in vendor/plugins/engines/lib/engines/rails_extensions/rails.rb at
Mongrel will then die with the error:
vendor/rails/railties/lib/initializer.rb:193:in `initialize’: wrong
number of arguments (1 for 2) (ArgumentError)
Not sure what’s wrong here. Looking at the #initialize method of the
Engines::PluginLoader that fails here this very much looks like the
#initialize method of the Engines Plugin class.
Can anybody help me out with this? Probably someone has running Rails
2.0 application set up with Engines and can zip me up the whole
application as a starting point?
I’m eager to get something up and running by Wednesday evening because
I want to present it to a customer who wants to slice up a huge Rails
app and Engines seems to be the perfect choice for that. It has to
work with Rails 2.0 though.
Also … I’d be interested in learning if there’s any work in progress
for an official version of Engines for Rails 2.0.
Thanks a lot for any pointers!