Forum: Rails Engines development [ANN] Engines 1.0.2

05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-01-06 12:50
(Received via mailing list)
The Engines plugin has been updated to version 1.0.2. Changes in this
release:

- Fixed bug with overloading controllers in modules from /app directory
- Fixed exception thrown when public files couldn't be created;
exception is now logged (Ticket #52)
- Fixed problem with generated test_helper.rb file via
File.expand_path (Ticket #50)

The new version can be obtained via the script/plugin command, and
found at the following SVN urls:

Latest Release: http://opensvn.csie.org/rails_engines/plugins/engines
Permanent Tag:
http://opensvn.csie.org/rails_engines/engines/tags/rel_1.0.2

Thanks to everyone for their feedback and Trac tickets! Let me know if
this causes any problems - if you do experience any issues, you can
always grab a specific tagged version after submitting the bug, while
we fix the source.

Back to work...

- James
Efe398b3b5436b0a8d4430090e8f86ea?d=identicon&s=25 Seth (Guest)
on 2006-01-06 20:40
James Adam wrote:
> The Engines plugin has been updated to version 1.0.2. Changes in this
> release:
>
> - Fixed bug with overloading controllers in modules from /app directory
> - Fixed exception thrown when public files couldn't be created;
> exception is now logged (Ticket #52)

Lookin good over here. Thanks for the quick turnaround time. Engines are
going to make me a lot more productive, and hopefully a lot more money!
:)
Efe398b3b5436b0a8d4430090e8f86ea?d=identicon&s=25 Seth (Guest)
on 2006-01-07 03:08
Found a bug...

I just deployed to Dreamhost with 1.0.2 and I'm getting a "stack too
deep" error when trying to access anything. The same code works with
1.0.1 - so something that has changed broke things.

PS: The same code runs just fine with 1.0.2 on my XP box and my OSX
box...

Here's the error from the log
-----------------------------
Processing Base#index (for 67.169.31.47 at 2006-01-06 17:53:34) [GET]
  Session ID: e77e376742fc93b083550da723f35473
  Parameters: {}


MissingSourceFile (no such file to load --
vendor/plugins/substruct/app/controllers/content_nodes_controller.rb):
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
    /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:244:in
`require'
    /vendor/plugins/engines/lib/dependencies_extensions.rb:54:in
`require_or_load'
......

Here's the spew from Webrick
-----------------------------

 SystemStackError in <controller not set>#<action not set>

stack level too deep

RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace

./script/../config/../vendor/rails/activesupport/lib/active_support/inflector.rb:107:in
`singularize'
./script/../config/../vendor/rails/activesupport/lib/active_support/inflector.rb:107:in
`each'
./script/../config/../vendor/rails/activesupport/lib/active_support/inflector.rb:107:in
`singularize'
./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:12:in
`singularize'
./script/../config/../vendor/rails/activerecord/lib/active_record/reflection.rb:142:in
`name_to_class_name'
./script/../config/../vendor/rails/activerecord/lib/active_record/reflection.rb:83:in
`class_name'
./script/../config/../vendor/rails/activerecord/lib/active_record/reflection.rb:87:in
`require_class'
./script/../config/../vendor/rails/activerecord/lib/active_record/associations.rb:890:in
`create_has_many_reflection'
./script/../config/../vendor/rails/activerecord/lib/active_record/associations.rb:346:in
`has_many'
/home/.demo/mchappel/michellechappel.com/vendor/plugins/substruct/app/models/product.rb:2
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:237:in
`load'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:237:in
`load'
...

Show blamed files

This error occured while loading the following files:
   script/../config/../vendor/plugins/substruct/app/controllers/application.rb
   => model order_line_item.rb
   order_line_item.rb
   product.rb
...and on and on...
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-01-07 12:42
(Received via mailing list)
Is the 'substruct/app/controllers/application.rb' file in your engine,
or should that be in the main application? I'm just trying to figure
out where it ought to be load it from...

- james
Efe398b3b5436b0a8d4430090e8f86ea?d=identicon&s=25 Guest (Guest)
on 2006-01-10 07:46
James Adam wrote:
> Is the 'substruct/app/controllers/application.rb' file in your engine,
> or should that be in the main application? I'm just trying to figure
> out where it ought to be load it from...
>
> - james

Sorry for the delayed response...

Yeah it's in the engines folder...not the main application. Basically
it's an app skeleton.
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-01-10 10:42
(Received via mailing list)
Try updating to 1.0.3 - that should fix the bug.

- james
This topic is locked and can not be replied to.