Project

General

Profile

Error #659

Error accessing settings

Added by Emilio González Montaña about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Urgent
Category:
Settings
Target version:
Start date:
2012-08-02
Due date:
2012-08-02
% Done:

100%

Estimated time:
Source:
Customer
Detected on version:
Milestones:

Description

Started GET "/" for 192.168.16.208 at Thu Aug 02 09:58:02 +0200 2012
  Processing by ExamsController#new as HTML
  User Load (0.8ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
   (0.2ms)  BEGIN
   (0.5ms)  UPDATE `users` SET `last_request_at` = '2012-08-02 07:58:02', `updated_at` = '2012-08-02 07:58:02', `perishable_token` = 'xHha1gKceeX1sawcGMs' WHERE `users`.`id` = 1
   (1.8ms)  COMMIT
  User Load (0.6ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
   (0.2ms)  BEGIN
   (0.6ms)  UPDATE `users` SET `last_request_at` = '2012-08-02 07:58:02', `updated_at` = '2012-08-02 07:58:02', `perishable_token` = 'yPqqJME5pZ3IsbHgJDwd' WHERE `users`.`id` = 1
   (14.8ms)  COMMIT
  Category Load (0.4ms)  SELECT `categories`.* FROM `categories`
   (0.2ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 1
   (0.3ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 2
   (0.2ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 3
   (0.3ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 4
   (0.3ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 5
   (0.2ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 6
   (0.2ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 7
   (0.2ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 8
   (0.2ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 9
   (0.2ms)  SELECT COUNT(*) FROM `questions` WHERE `questions`.`category_id` = 10
  Setting Load (0.2ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'exams_factor_ok' LIMIT 1
Completed 500 Internal Server Error in 294ms

NoMethodError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]):
  app/models/setting.rb:21:in `value='
  app/models/setting.rb:61:in `new'
  app/models/setting.rb:61:in `find_or_default'
  app/models/setting.rb:27:in `[]'
  app/models/setting.rb:53:in `exams_factor_ok'
  app/controllers/exams_controller.rb:26:in `new'

Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.6ms)
#1

Updated by Emilio González Montaña about 9 years ago

  • Due date set to 2012-08-02
  • Status changed from In progress to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF