uninitialized constant ProjectArea::KeyAspect

Forums > Book - Chapter 5 > uninitialized constant ProjectArea::KeyAspect

Login to post a new topic

Author Message
dory
Member since 03 Apr 18:21
0 posts

Guys, any idea on how to fix the following error? My code is based on the discussion forum (Ch.5) code, with the resources ‘topics’ being renamed to ‘project_areas’ and ‘posts’ renamed to ‘key_aspects’. Here is the 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

dory
Member since 03 Apr 18:21
0 posts

I’m completely new to RoR and any help would be hugely appreciated.