Closed brucenan closed 11 years ago
I install it successfully, and add this plugin to one project. Then click "Resource Planner" tab, error page display. I get error from apache error.log:
NoMethodError (undefined method `teams' for []:ActiveRecord::Relation): activerecord (3.2.12) lib/active_record/relation/delegation.rb:45:in `method_missing' plugins/planner/app/controllers/planner_controller.rb:7:in `index' actionpack (3.2.12) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (3.2.12) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (3.2.12) lib/abstract_controller/base.rb:167:in `process_action' actionpack (3.2.12) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (3.2.12) lib/abstract_controller/callbacks.rb:18:in `process_action' activesupport (3.2.12) lib/active_support/callbacks.rb:480:in `_run__1450728668__process_action__1598330045__callbacks' activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `send' activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `__run_callback' activesupport (3.2.12) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' activesupport (3.2.12) lib/active_support/callbacks.rb:81:in `send' activesupport (3.2.12) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (3.2.12) lib/abstract_controller/callbacks.rb:17:in `process_action' actionpack (3.2.12) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:30:in `process_action' activesupport (3.2.12) lib/active_support/notifications.rb:123:in `instrument' activesupport (3.2.12) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (3.2.12) lib/active_support/notifications.rb:123:in `instrument' actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:29:in `process_action' actionpack (3.2.12) lib/action_controller/metal/params_wrapper.rb:207:in `process_action' activerecord (3.2.12) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (3.2.12) lib/abstract_controller/base.rb:121:in `process' actionpack (3.2.12) lib/abstract_controller/rendering.rb:45:in `process'
Er..I didn't restart apache.
I install it successfully, and add this plugin to one project. Then click "Resource Planner" tab, error page display. I get error from apache error.log: