Urgent help needed! "uninitialized constant" error.

I need a hint on what could be causing the following error message:

NameError in Project areasController#destroy uninitialized constant ProjectArea::KeyAspect D:/Ruby/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:477:in `const_missing’ (eval):1:in `configure_dependency_for_has_many’ #{RAILS_ROOT}/app/controllers/project_areas_controller.rb:129:in `destroy’ script\server:3 -e:2:in `load’ -e:2

Many thanks people

Attachments: http://www.ruby-forum.com/attachment/1688/project_areas_controller.rb

There's not enough information here. I'd say it probably lies in the ProjectArea model. My guess would be that you have a has_many association that looks like this:

has_many :KeyAspects

instead of

has_many :key_aspects?