# Upgrading from old gems/engines to new. MyApp won't start

**URL:** <https://www.ruby-forum.com/t/upgrading-from-old-gems-engines-to-new-myapp-wont-start/119064>\
**Category:** Rails\
**Created:** [November 2, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/upgrading-from-old-gems-engines-to-new-myapp-wont-start/119064 "2007-11-02T19:17:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![afg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@afg](https://www.ruby-forum.com/u/afg)\
**Post date:** [November 2, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/upgrading-from-old-gems-engines-to-new-myapp-wont-start/119064/1 "2007-11-02T19:17:21Z")

</div>

All,

I have a working Rails program with some older gems and it uses  
engines. (Rails 1.1.6 in particular).

The initial controller is very simple:

> >

class IntranetController \< ApplicationController  
def index  
# if session[:rbac\_user].nil?  
# redirect\_to “/active\_rbac/login”  
# end  
end  
end  
\<\<

Notice I have basically everything commented out.

I am testing it on a new machine with much more current gems and it is  
dieing right off the bat. (accessing url = localhost:3000/intranet)

Any thoughts?

# My development.log file is showing:

# Logfile created on Fri Nov 02 13:47:52 -0400 2007 by /

Processing Base#index (for 127.0.0.1 at 2007-11-02 13:56:28) [GET]  
Session ID: 6322a4c6649466ebde05587e3ecbc2bd  
Parameters: {“action”=\>“index”, “controller”=\>“intranet”}

LoadError (Expected  
/srv/www/vhosts/forensic1000.dev/app/controllers/intranet\_controller.rb  
to define IntranetController):  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/dependencies.rb:249:in  
`load_missing_constant' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452:in `const\_missing’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/dependencies.rb:464:in  
`const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250:in `constantize’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/core\_ext/string/inflections.rb:148:in  
`constantize' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/routing.rb:1317:in `recognize’  
/usr/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:40:in  
`dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in  
`synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:616:in  
`process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:615:in `each’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:615:in  
`process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in `initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in  
`new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `each’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:126:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:242 /usr/bin/mongrel_rails:16:in `load’  
/usr/bin/mongrel\_rails:16

# Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action\_controller/templates/rescues/layout.rhtml (500 Internal Error)

I have gotten a simple demo Rails app to run via mongrel, so I assume  
my setup is right, it is just that my code is out of date for the new  
gems.

## Greg

Greg F.  
Litigation Triage Solutions Specialist  
[http://www.linkedin.com/in/gregfreemyer](http://www.linkedin.com/in/gregfreemyer)

The Norcross Group  
The Intersection of Evidence & Technology  
[http://www.norcrossgroup.com](http://www.norcrossgroup.com)

---

<div class="post-metadata">

**Author:** ![afg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@afg](https://www.ruby-forum.com/u/afg)\
**Post date:** [November 2, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/upgrading-from-old-gems-engines-to-new-myapp-wont-start/119064/2 "2007-11-02T19:32:34Z")

</div>

Looks like at least one of my problems is my use of engines.

I’ll have to see where I go from here.

Sorry for the noise.

Greg

On 11/2/07, Greg F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> # redirect_to "/active_rbac/login"
> 
> ```
> 
> Any thoughts?
> 
> `constantize' `process’  
> /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in `new’  
> /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel\_rails:242  
> gems.

–  
Greg F.  
Litigation Triage Solutions Specialist  
[http://www.linkedin.com/in/gregfreemyer](http://www.linkedin.com/in/gregfreemyer)

The Norcross Group  
The Intersection of Evidence & Technology  
[http://www.norcrossgroup.com](http://www.norcrossgroup.com)
