Coursemology / coursemology.org

[OBSOLETE] Coursemology v1 has now been superseded by v2 (https://github.com/coursemology/coursemology2)
https://v1.coursemology.org
MIT License
38 stars 32 forks source link

NoMethodError: undefined method `each' for nil:NilClass #413

Closed jsyeo closed 9 years ago

jsyeo commented 9 years ago

View details in Rollbar: https://rollbar.com/jsyeo/coursemology.org/items/93/


NoMethodError: undefined method `each' for nil:NilClass
  File "/home/raymoond/jenkins/workspace/coursemology_second/app/controllers/survey_submissions_controller.rb", line 54, in submit
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb", line 4, in send_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/base.rb", line 167, in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb", line 10, in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb", line 18, in block in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/callbacks.rb", line 447, in _run__4463340911999700483__process_action__3184653412258082535__callbacks
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/callbacks.rb", line 405, in __run_callback
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/callbacks.rb", line 385, in _run_process_action_callbacks
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/callbacks.rb", line 81, in run_callbacks
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb", line 17, in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/rescue.rb", line 29, in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb", line 30, in block in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/notifications.rb", line 123, in block in instrument
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb", line 20, in instrument
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/notifications.rb", line 123, in instrument
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb", line 29, in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb", line 207, in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb", line 18, in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/rails3/action_controller.rb", line 40, in block in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/controller_instrumentation.rb", line 364, in perform_action_with_newrelic_trace
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/rails3/action_controller.rb", line 39, in process_action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/base.rb", line 121, in process
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb", line 45, in process
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal.rb", line 203, in dispatch
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal/rack_delegation.rb", line 14, in dispatch
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_controller/metal.rb", line 246, in block in action
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb", line 73, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb", line 73, in dispatch
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb", line 36, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/journey-1.0.4/lib/journey/router.rb", line 68, in block in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/journey-1.0.4/lib/journey/router.rb", line 56, in each
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/journey-1.0.4/lib/journey/router.rb", line 56, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb", line 608, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 57, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/omniauth-1.2.2/lib/omniauth/strategy.rb", line 186, in call!
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/omniauth-1.2.2/lib/omniauth/strategy.rb", line 164, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 57, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/error_collector.rb", line 50, in traced_call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 55, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/agent_hooks.rb", line 26, in traced_call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 55, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/browser_monitoring.rb", line 23, in traced_call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 55, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/warden-1.2.3/lib/warden/manager.rb", line 35, in block in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/warden-1.2.3/lib/warden/manager.rb", line 34, in catch
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/warden-1.2.3/lib/warden/manager.rb", line 34, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 57, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.14/lib/action_dispatch/middleware/best_standards_support.rb", line 17, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb", line 57, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/etag.rb", line 23, in call
  File "/home/raymoond/.rvm/gems/