# Engine.start order (user\_engine)

**URL:** <https://www.ruby-forum.com/t/engine-start-order-user-engine/52184>\
**Category:** Engines\
**Created:** [January 11, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/engine-start-order-user-engine/52184 "2006-01-11T19:51:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgreiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/258eb7/32.png) [@tgreiser](https://www.ruby-forum.com/u/tgreiser)\
**Post date:** [January 11, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/engine-start-order-user-engine/52184/1 "2006-01-11T19:51:21Z")

</div>

I’m trying to use user\_engine, and as suggested I load with:

Engines.start :login, :user

However, when I go to /user/list

I get a nil object error. Some use of breakpointer reveals that it  
isn’t running the user\_engine user\_controller, but instead the  
login\_engine user\_controller (which doesn’t have the list action). I  
have also tried the 2 alternate methods of Engines.start, but no luck.  
Here is my trace:

#{RAILS\_ROOT}/vendor/plugins/user\_engine/app/views/user/list.rhtml:5  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_view/base.rb:268:in  
`compile_and_render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244:in`render\_template’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_view/base.rb:205:in  
`render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:655:in`render\_file’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/base.rb:595:in  
`render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/layout.rb:228:in`render\_without\_benchmark’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/benchmarking.rb:53:in  
`render' /usr/lib/ruby/1.8/benchmark.rb:293:in`measure’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/benchmarking.rb:53:in  
`render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:856:in`perform\_action\_without\_filters’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/filters.rb:332:in  
`perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in`perform\_action\_without\_rescue’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in`perform\_action\_without\_rescue’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/rescue.rb:82:in  
`perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in`process\_without\_session\_management\_support’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/session\_management.rb:116:in  
`process' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in`dispatch’  
#{RAILS\_ROOT}/public/dispatch.cgi:10

TIA

---

<div class="post-metadata">

**Author:** ![tgreiser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/258eb7/32.png) [@tgreiser](https://www.ruby-forum.com/u/tgreiser)\
**Post date:** [January 12, 2006, 11:25am UTC](https://www.ruby-forum.com/t/engine-start-order-user-engine/52184/2 "2006-01-12T11:25:33Z")

</div>

Hi Tim,

I’m working on a fix - in the meantime you can use

[http://opensvn.csie.org/rails\_engines/engines/tags/rel\_1.0.1](http://opensvn.csie.org/rails_engines/engines/tags/rel_1.0.1)

… which shouldn’t exhibit this problem. I should have a fix later  
today though - you might want to stay tuned to the engine-developers  
list (on rforum, or at [rails-engines.org](http://rails-engines.org))

- james
