Welcome Guest | Login

Odd error

I was looked in my error log and saw this


NameError (uninitialized constant StudentControllerController):
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'
   generated/routing/recognition.rb:4:in `recognize_path'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:511:in `recognize!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:150:in `process_request'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:54:in `process!'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:53:in `process!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:23:in `process!'
   dispatch.fcgi:24

controllercontroller?

its really throwing me off....

HELP!

2006-12-21 04:57 PM

Your student controller is not named correctly

"uninitialized constant StudentControllerController"

If I had to guess I'd say you ran something like the following
ruby script/generate controller StudentController 
when it should have been
ruby script/generate controller Student
Take out one of those "Controller"s and it should help (i.e. check out what is at the top of your ~/railsapp/app/controllers/studentcontrollercontroller.rb and also rename the file)


Cheers,

~William

2006-12-21 05:19 PM

You are correct SIR!

all well in now

cheers

2006-12-21 05:24 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.