Ruby Upgrade - Now broken

software development


After Dreamhost updated Ruby on Rails, my application now errors out. I know basic Ruby on Rails, but I can’t seem to find what has changed. I keep seeing posts that this may be a gem issues, but I don’t remember installing any custom gems. This is what I get.

Processing ApplicationController#list (for at 2007-03-05 08:32:42) [GET]
Session ID: ad885146c691cefa308986cd5c7c7b57
Parameters: {“title”=>“Welcome”, “action”=>“list”, “controller”=>“news”}

NameError (uninitialized constant NewsController):

NewsController is my “News” controller (obviously.) Is it just as simple as initializing this constant elsewhere? I do use an authentication piece that I got at the official ruby on rails site, so maybe this script is now broken (though I hope not.) Though, I don’t see any errors about the authentication piece. Any insight would be great since I’m not sure where to start. Thanks.


In case you’re still working on this… try running in development mode so you can get a better stack trace (hopefully find the exact file and line number the problem is arising from). Once you find that, post the code (or a censored version of it). - The simple, audio podcast search engine.


Yep, was actually working on learning Ruby on Rails more in-depth to see if I can figure it out (and learn on the way.) This is the log output from production.

Processing ApplicationController#list (for xx.xx.xx.xx at 2007-03-10 18:50:36) [GET]
Session ID: 1062e2373c7f8230d689f8b0957f1bcb
Parameters: {“title”=>“Welcome”, “action”=>“list”, “controller”=>“news”}

NameError (uninitialized constant NewsController):
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:266:in load_missing_constant' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:452:inconst_missing’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:464:in const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/inflector.rb:250:inconstantize’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/core_ext/string/inflections.rb:148:in constantize' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/routing.rb:1284:inrecognize’
/usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:40:in dispatch' ./fcgi_handler.rb:136:inprocess_request’
./fcgi_handler.rb:62:in process!' /usr/lib/ruby/1.8/fcgi.rb:600:ineach_cgi’
/usr/lib/ruby/1.8/fcgi.rb:597:in each' /usr/lib/ruby/1.8/fcgi.rb:597:ineach_cgi’
./fcgi_handler.rb:53:in process!' ./fcgi_handler.rb:20:inprocess!'

It just looks like the controller I use just got confused. It looks like it needs to be “initialized” somewhere else, but I can’t figure out where or why.