instructure/canvas-lms — Issue #128: Error on creation of new Assignment of Type External Tools
Author: lauraeci
Created: 2011-12-15 01:19:06+00:00
State: open

Following this example on https://github.com/instructure/lti_example. Created a new Assignment of Type External Tool pointing to my local lti_example service and I get this error message:

NoMethodError in AssignmentsController#show

undefined method `content_type' for nil:NilClass

Application Trace | Framework Trace | Full Trace
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/whiny_nil.rb:52:in `method_missing'
/canvas/app/controllers/application_controller.rb:803:in `content_tag_redirect'
/canvas/app/controllers/assignments_controller.rb:102:in `show'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135:in `custom'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:in `respond'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:in `each'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:in `respond'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:107:in `respond_to'
/Users/lmarshall/Tools/canvas/app/controllers/assignments_controller.rb:94:in `show'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:638:in `run_before_filters'
/Users/lmarshall/Tools/canvas/app/controllers/application_controller.rb:57:in `set_locale'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:in `send'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:in `evaluate_method'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:186:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:635:in `run_before_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:615:in `call_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process_without_compass'
/Library/Ruby/Gems/1.8/gems/compass-0.11.5/lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'