David Mitchell
2006-Feb-01 01:03 UTC
[Rails] Uninitialized constant ApplicationController?
Hello list, I''m trying to start my Rails server after doing a long complex switch from Postgres to MySQL, and I''m getting the following error: => Booting WEBrick... /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'': uninitialized constant ApplicationController (NameError) from script/../config/../vendor/plugins/user_engine/lib/user_engine.rb:74:in `included'' from ./script/../config/../app/helpers/application_helper.rb:5 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in `require'' from script/../config/../vendor/plugins/bundled_resource-0.9/init.rb:18:in `load_plugin'' from /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:311:in `load_plugin'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/kernel.rb:27:in `silence_warnings'' from /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:311:in `load_plugin'' ... 10 levels... from /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28 I''ve seen the ''Uninitialized constant ...'' message before, but it''s always been because of a simple typo on my part, or a version mismatch somewhere. I''m on Gentoo Linux, MySQL 5.0.18, Rails 1.0, current versions of login_engine and user_engine, and that combination of versions seems to be fine as far as I can tell. Any suggestions where to look? Thanks in advance Dave M.
Mr Mitchell: On Jan 31, 2006, at 5:03 PM, David Mitchell wrote:> => Booting WEBrick... > /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/ > dependencies.rb:200:in > `const_missing'': uninitialized constant ApplicationControllerMake sure the app/controllers/application.rb file exists. Cheers, Hasan Diwan <hasan.diwan@gmail.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060202/c871098b/PGP.bin
David Mitchell
2006-Feb-02 01:11 UTC
[Rails] Uninitialized constant ApplicationController?
Thanks Hasan, I checked that it is there, appears to be correct, but the problem is still occurring. Regards Dave M. On 02/02/06, Hasan Diwan <hasan.diwan@gmail.com> wrote:> Mr Mitchell: > On Jan 31, 2006, at 5:03 PM, David Mitchell wrote: > > => Booting WEBrick... > > /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/ > > dependencies.rb:200:in > > `const_missing'': uninitialized constant ApplicationController > > Make sure the app/controllers/application.rb file exists. > > Cheers, > Hasan Diwan <hasan.diwan@gmail.com> > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > >