# Couple of quick comments

**URL:** <https://www.ruby-forum.com/t/couple-of-quick-comments/52563>\
**Category:** Engines Development\
**Created:** [January 16, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/couple-of-quick-comments/52563 "2006-01-16T15:33:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicksnels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/aca169/32.png) [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Post date:** [January 16, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/couple-of-quick-comments/52563/1 "2006-01-16T15:33:21Z")

</div>

Good news first, after a little struggle I have the user and login  
engines working together with out any changes made. Yeah! (running  
engines 1.0.5 and trunk from the user and login engines)

One thing I’ve noticed, if you have a method in say, the login  
user\_controller, and a method in the user user\_controller, it seems  
that the login user\_controller method is called. For a quick example,  
add an empty list method to the login user\_controller and see what  
happens.

Also, it appears engines don’t play well at all with edge rails. ☹  
I keep getting stack-level to deep, so we’re stuck in a stupid look  
somewhere. Here’s a quick section of the trace to give some hints…

/Users/nstuart/Development/rails/frails/vendor/plugins/user\_engine/app/models/role.rb:32  
./public/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active\_support/dependencies.rb:237:in  
`load' ./public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:237:in`load’  
./public/…/config/…/vendor/plugins/engines/lib/dependencies\_extensions.rb:73:in  
`require_or_load' ./public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:30:in`depend\_on’  
./public/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active\_support/dependencies.rb:36:in  
`associate_with' ./public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:209:in`require\_association’  
./public/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active\_support/dependencies.rb:209:in  
`require_association' ./public/../config/../vendor/rails/activerecord/lib/active_record/reflection.rb:87:in`require\_class’  
./public/…/config/…/vendor/rails/activerecord/lib/active\_record/associations.rb:935:in  
`create_has_and_belongs_to_many_reflection' ./public/../config/../vendor/rails/activerecord/lib/active_record/associations.rb:609:in`has\_and\_belongs\_to\_many’  
./public/…/config/…/vendor/plugins/user\_engine/lib/user\_engine/authorized\_user.rb:47:in  
`included' ./public/../config/../vendor/plugins/user_engine/lib/user_engine/authorized_user.rb:46:in`class\_eval’  
./public/…/config/…/vendor/plugins/user\_engine/lib/user\_engine/authorized\_user.rb:46:in  
`class_eval' ./public/../config/../vendor/plugins/user_engine/lib/user_engine/authorized_user.rb:46:in`included’  
/Users/nstuart/Development/rails/frails/vendor/plugins/user\_engine/app/models/user.rb:30:in  
`include' /Users/nstuart/Development/rails/frails/vendor/plugins/user_engine/app/models/user.rb:30 ./public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:237:in`load’  
./public/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active\_support/dependencies.rb:237:in  
`load' ./public/../config/../vendor/plugins/engines/lib/dependencies_extensions.rb:73:in`require\_or\_load’  
./public/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active\_support/dependencies.rb:30:in  
`depend_on' ./public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:36:in`associate\_with’  
./public/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active\_support/dependencies.rb:209:in  
`require_association' ./public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:209:in`require\_association’  
./public/…/config/…/vendor/rails/activerecord/lib/active\_record/reflection.rb:87:in  
`require_class' ./public/../config/../vendor/rails/activerecord/lib/active_record/associations.rb:935:in`create\_has\_and\_belongs\_to\_many\_reflection’  
./public/…/config/…/vendor/rails/activerecord/lib/active\_record/associations.rb:609:in  
`has\_and\_belongs\_to\_many’  
/Users/nstuart/Development/rails/frails/vendor/plugins/user\_engine/app/models/role.rb:32  
…And so on and so forth.

I think thats it for now. Sure I’ll have some more comments later once  
I actually start making my own engines. 🙂

Keep up the good work guys!  
-Nick

p.s. As always, yell if you need some more info for debugging purposes  
or whatever.
