Uninitialized constant ApplicationController

Hey,

I am getting a weird error that doesn’t give much helpful debug output
because the application controller can not be found. The actual error
output actually shows up in the webrick server, i’m trying right now
wether this could be because of my computer configuration but i don’t
think so because it was working yesterday and i must have changed
something that broke it but i have absolutely no clue what it is.

thanks,
dennis


#<NameError: uninitialized constant ApplicationController>
["/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
const_missing'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:inconst_missing’",
“script/…/config/…/app/controllers/content_controller.rb:6”,
“/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in
load'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:inrequire_or_load’”,
“/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in
depend_on'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:inrequire_dependency’”,
“/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in
const_missing'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:inconst_missing’”,
“/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/inflector.rb:161:in
constantize'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/string/inflections.rb:59:inconstantize’”,
“/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/module/introspection.rb:6:in
parent'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/class/removal.rb:16:inremove_class’”,
“/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/class/removal.rb:11:in
remove_class'", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:55:inreset_application!’”,
“/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:74:in
reset_after_dispatch'", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:46:indispatch’”,
“/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in
handle_dispatch'", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:inservice’”,
“/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service'", "/usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’”,
“/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread'", "/usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread’”,
“/usr/lib/ruby/1.8/webrick/server.rb:95:in start'", "/usr/lib/ruby/1.8/webrick/server.rb:92:instart’”,
“/usr/lib/ruby/1.8/webrick/server.rb:23:in start'", "/usr/lib/ruby/1.8/webrick/server.rb:82:instart’”,
“/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in
dispatch'", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59", "/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’”,
“/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require'", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30", "/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’”,
"/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require'", "script/server:3"] [2006-07-29 00:59:04] ERROR/content/userContents’ not found.
127.0.0.1 - - [29/Jul/2006:00:59:03 PDT] “GET /content/userContents
HTTP/1.1” 404 290

  • -> /content/userContents

Dennis Schaaf wrote:

Hey,

I am getting a weird error that doesn’t give much helpful debug output
because the application controller can not be found. The actual error
output actually shows up in the webrick server, i’m trying right now
wether this could be because of my computer configuration but i don’t
think so because it was working yesterday and i must have changed
something that broke it but i have absolutely no clue what it is.

thanks,
dennis


I am getting the same error. I have freezed rails to 2.2.2. in the
dev-log it looks like the application.rb cannot be found anymore after a
db:migrate. If i “require app/controllers/application.rb” from the
controller, then it is found. So the file is there. But then it looks
like the stylesheets cannot be found.

Rasmus R. wrote:

Dennis Schaaf wrote:

Hey,

I am getting a weird error that doesn’t give much helpful debug output
because the application controller can not be found. The actual error
output actually shows up in the webrick server, i’m trying right now
wether this could be because of my computer configuration but i don’t
think so because it was working yesterday and i must have changed
something that broke it but i have absolutely no clue what it is.

thanks,
dennis


I am getting the same error. I have freezed rails to 2.2.2. in the
dev-log it looks like the application.rb cannot be found anymore after a
db:migrate. If i “require app/controllers/application.rb” from the
controller, then it is found. So the file is there. But then it looks
like the stylesheets cannot be found.

sorry! i refreshed the page and now the styles are there :slight_smile:

oh! I just now tried removing the “require” line and it still finds
application.rb. The error is gone! Haha, I’m starting to sound like
David Heinemeier H…

What caused this? Perhaps it’s working again beause I did “Clear Private
Data” in firefox?