Skip to content

Instantly share code, notes, and snippets.

@ulfmagnetics
Created May 16, 2013 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ulfmagnetics/5589659 to your computer and use it in GitHub Desktop.
Save ulfmagnetics/5589659 to your computer and use it in GitHub Desktop.
new error on bpt staging
Started POST "/sections/32/results" for 98.210.196.162 at 2013-05-15 22:52:42 -0700
Processing by TestResultsController#create as */*
Parameters: {"results"=>{"error_count"=>"0", "data"=>{"version"=>"ef418dcf1c7d032fd08e5b4b2d95837ff5bef9cf"}, "score"=>"3", "datumArray"=>{"0"=>{"unit"=>"problems", "name"=>"Correct", "value"=>"3"}, "1"=>{"unit"=>"problems", "name"=>"Incorrect", "value"=>"0"}}}, "id"=>"32"}
TestRun Load (0.4ms) SELECT `test_runs`.* FROM `test_runs` WHERE `test_runs`.`id` = 34337 LIMIT 1
BrainpowerTest Load (0.2ms) SELECT `brainpower_tests`.* FROM `brainpower_tests` WHERE `brainpower_tests`.`id` = 4 LIMIT 1
TestStyle Load (0.2ms) SELECT `test_styles`.* FROM `test_styles` WHERE `test_styles`.`id` = 1 LIMIT 1
TestSection Load (0.3ms) SELECT `test_sections`.* FROM `test_sections` WHERE `test_sections`.`swf` IN ('wordy_equations_v2', 'span_board_v2', 'reaction_v2', 'dva_v2', 'grammatical_reasoning_v2', 'signup')
(0.1ms) BEGIN
CACHE (0.0ms) SELECT `test_runs`.* FROM `test_runs` WHERE `test_runs`.`id` = 34337 LIMIT 1
TestResult Exists (0.3ms) SELECT 1 AS one FROM `test_results` WHERE (`test_results`.`test_section_id` = BINARY 32 AND `test_results`.`test_run_id` = 34337) LIMIT 1
FlashAsset Load (0.3ms) SELECT `flash_assets`.* FROM `flash_assets` WHERE `flash_assets`.`flash_file` = 'wordy_equations_v2.swf' LIMIT 1
(0.1ms) ROLLBACK
Completed 500 Internal Server Error in 14ms
** [Airbrake] Environment Info: [Ruby: 1.9.3] [Rails: 3.2.11] [Env: staging]
** [Airbrake] Response from Airbrake:
<notice>
<id>64c4437b-0b42-1e93-9d00-591705837cb8</id>
<url>http://airbrake.io/locate/64c4437b-0b42-1e93-9d00-591705837cb8</url>
</notice>
NoMethodError (undefined method `score_scale' for #<FlashAsset:0x000000185842e8>):
app/models/test_result.rb:35:in `index_score'
app/models/test_result.rb:52:in `store_scores_in_data'
app/controllers/test_results_controller.rb:12:in `create'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment