qwester 0.3.5 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +8 -8
  2. data/README.rdoc +14 -0
  3. data/app/models/qwester/questionnaire.rb +1 -0
  4. data/lib/qwester/version.rb +3 -1
  5. data/test/dummy/db/development.sqlite3 +0 -0
  6. data/test/dummy/db/test.sqlite3 +0 -0
  7. data/test/dummy/log/development.log +899 -0
  8. data/test/dummy/log/test.log +4778 -0
  9. data/test/dummy/public/system/qwester/questionnaires/button_images/000/000/001/link/blue.png +0 -0
  10. data/test/dummy/public/system/qwester/questionnaires/button_images/000/000/001/thumbnail/blue.png +0 -0
  11. data/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/link/qwester.png +0 -0
  12. data/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/thumbnail/qwester.png +0 -0
  13. data/test/dummy/tmp/cache/assets/BC8/3D0/sprockets%2F28221866b9151c661a572d3456949840 +0 -0
  14. data/test/dummy/tmp/cache/assets/C23/B30/sprockets%2F4d50e6a891c7679a2782212c73406417 +0 -0
  15. data/test/dummy/tmp/cache/assets/C8A/4A0/sprockets%2F0cf2d6954692cf14318898bb160f0396 +0 -0
  16. data/test/dummy/tmp/cache/assets/C91/2F0/sprockets%2F963252f111397ee484de811d987618ea +0 -0
  17. data/test/dummy/tmp/cache/assets/CAE/210/sprockets%2F5cd41411a627f369438ad66113782dcf +0 -0
  18. data/test/dummy/tmp/cache/assets/CB5/4C0/sprockets%2Fd3696d8657bd44d3645f0b4a7014439b +0 -0
  19. data/test/dummy/tmp/cache/assets/CB7/D80/sprockets%2F5c250aee3428670e7ae775d3730c9773 +0 -0
  20. data/test/dummy/tmp/cache/assets/CC0/240/sprockets%2F8546f5d89ce6166c6b7e1726fa821702 +0 -0
  21. data/test/dummy/tmp/cache/assets/CC1/000/sprockets%2F648de7972a6319ef237187e07da1558b +0 -0
  22. data/test/dummy/tmp/cache/assets/CD3/0C0/sprockets%2F0300b78700eda365663cb77e453ac55c +0 -0
  23. data/test/dummy/tmp/cache/assets/CDA/2B0/sprockets%2F87039a55d21db0495d9e030b18f45b6b +0 -0
  24. data/test/dummy/tmp/cache/assets/CFB/410/sprockets%2F0970a026f0fb094bcb41071e283ddb38 +0 -0
  25. data/test/dummy/tmp/cache/assets/D06/E10/sprockets%2F6a7521cf6f744bc2447bf011057d3c9a +0 -0
  26. data/test/dummy/tmp/cache/assets/D1E/250/sprockets%2Fef6fae75f3c3e3422606c7487f473e71 +0 -0
  27. data/test/dummy/tmp/cache/assets/D23/140/sprockets%2F924aa4306fa09a94f5a1c15032b4bd3a +0 -0
  28. data/test/dummy/tmp/cache/assets/D38/540/sprockets%2F86e1ad844bc9df4491a2a52b870421db +0 -0
  29. data/test/dummy/tmp/cache/assets/D3E/F00/sprockets%2F722e5200858e4eb986fa234edbc830bd +0 -0
  30. data/test/dummy/tmp/cache/assets/D40/C10/sprockets%2Fa2df8681b181ad10b3e889728fd23ac7 +0 -0
  31. data/test/dummy/tmp/cache/assets/D48/640/sprockets%2F9f4f18d910b678b1d0777e04cdaf6f24 +0 -0
  32. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  33. data/test/dummy/tmp/cache/assets/D50/D10/sprockets%2Fd04be832a986f94825a24edaafa99946 +0 -0
  34. data/test/dummy/tmp/cache/assets/D51/250/sprockets%2F65f090d68673efb66ed39cd1d2c814f7 +0 -0
  35. data/test/dummy/tmp/cache/assets/D60/760/sprockets%2F907a0c5d3d81e60c0d2c26f26edb22c8 +0 -0
  36. data/test/dummy/tmp/cache/assets/D64/460/sprockets%2F400b7f053d6fd90d7fa611a9a703de7a +0 -0
  37. data/test/dummy/tmp/cache/assets/D6B/A30/sprockets%2Fc22e68114b705c1ecd2c639f5bfc6c65 +0 -0
  38. data/test/dummy/tmp/cache/assets/D8E/150/sprockets%2F128adbe1db0c5bc712a19a56e639dc53 +0 -0
  39. data/test/dummy/tmp/cache/assets/D9C/370/sprockets%2Fd94c8221c571ec33c5ba5bbc339c69ed +0 -0
  40. data/test/dummy/tmp/cache/assets/DA2/A80/sprockets%2Fb3e17746cbaea8440e1dcf6e11e879d6 +0 -0
  41. data/test/dummy/tmp/cache/assets/DAB/B20/sprockets%2F2d5a179e9ea7e9282fffd6c4e1234b5d +0 -0
  42. data/test/dummy/tmp/cache/assets/DE3/C90/sprockets%2F915bee04fed8ef658ad9c8b74ea443f6 +0 -0
  43. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  44. data/test/dummy/tmp/cache/assets/E08/F60/sprockets%2Fec4744f53f4ec2bdbf80dd77e4cc29b7 +0 -0
  45. data/test/dummy/tmp/cache/assets/E0C/6D0/sprockets%2Fe3cfeb4f44ec7836a96a69f4a0b5f7eb +0 -0
  46. data/test/dummy/tmp/cache/assets/E20/490/sprockets%2Fadd9bcec9a167aa5411b8ca6e4db24b5 +0 -0
  47. data/test/dummy/tmp/cache/assets/E99/F10/sprockets%2Fff930fbcfd6e8b935cc6d09f5aac6cec +0 -0
  48. metadata +66 -4
@@ -67422,3 +67422,902 @@ Served asset /jquery_ujs.js - 304 Not Modified (6ms)
67422
67422
 
67423
67423
  Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2015-02-13 09:36:22 +0000
67424
67424
  Served asset /active_admin/application.js - 304 Not Modified (1ms)
67425
+ Connecting to database specified by database.yml
67426
+  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
67427
+  (0.3ms) select sqlite_version(*)
67428
+  (189.2ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
67429
+  (165.6ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
67430
+  (98.9ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
67431
+  (144.2ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
67432
+  (115.0ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
67433
+  (132.5ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
67434
+  (140.6ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
67435
+  (131.8ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
67436
+  (132.7ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
67437
+  (131.2ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
67438
+  (115.6ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
67439
+  (114.2ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
67440
+  (90.6ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
67441
+  (116.0ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
67442
+  (115.3ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
67443
+  (114.8ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
67444
+  (115.7ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime, "must_complete" boolean) 
67445
+  (122.3ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
67446
+  (115.2ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
67447
+  (106.4ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
67448
+  (143.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
67449
+  (190.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
67450
+  (0.3ms) SELECT version FROM "schema_migrations"
67451
+  (154.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131119142050')
67452
+  (119.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
67453
+  (127.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
67454
+  (231.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
67455
+  (193.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
67456
+  (105.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
67457
+  (149.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
67458
+  (116.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
67459
+  (124.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
67460
+  (150.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
67461
+  (167.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
67462
+  (331.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
67463
+  (425.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
67464
+  (298.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
67465
+  (200.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
67466
+  (257.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
67467
+  (249.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
67468
+  (208.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
67469
+  (423.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
67470
+  (301.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
67471
+  (297.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
67472
+  (217.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
67473
+  (197.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
67474
+  (192.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
67475
+  (174.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
67476
+  (174.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
67477
+ Connecting to database specified by database.yml
67478
+ Connecting to database specified by database.yml
67479
+  (70.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
67480
+ Migrating to DeviseCreateAdminUsers (20130110115938)
67481
+ Migrating to CreateAdminComments (20130110115940)
67482
+ Migrating to CreateQuestions (20130314103645)
67483
+ Migrating to CreateAnswers (20130314103646)
67484
+ Migrating to CreateRuleSets (20130314103647)
67485
+ Migrating to CreateQuestionnaires (20130314103648)
67486
+ Migrating to CreateAnswerStores (20130314103649)
67487
+ Migrating to AddQuestionnaireIdToAnswers (20130314103650)
67488
+ Migrating to ChangeAnswersValueToString (20130314103651)
67489
+ Migrating to AddButtonImageToQuestionnaires (20130314103652)
67490
+ Migrating to CreateCkeditorAssets (20130314103653)
67491
+ Migrating to AddRefToQuestions (20130314103654)
67492
+ Migrating to AddIdsToQuestionnairesQuestions (20130314103655)
67493
+ Migrating to AddPositionToAnswers (20130314103656)
67494
+ Migrating to RemoveQuestionnaireFromAnswer (20130314103657)
67495
+ Migrating to AddRuleToRuleSets (20130314103658)
67496
+ Migrating to AddMultiAnswerToQuestions (20130314103659)
67497
+ Migrating to CreateAnswerStoresQuestionnaires (20130314103660)
67498
+ Migrating to AddLinkTextToRuleSets (20130314103661)
67499
+ Migrating to AddPreservedToAnswerStores (20130314103662)
67500
+ Migrating to CreateQwesterPresentations (20130315113346)
67501
+ Migrating to CreateQwesterPresentationQuestionnaires (20130315113347)
67502
+ Migrating to AddPresentationToRuleSets (20130402085423)
67503
+ Migrating to AddWeightingToQwesterAnswers (20130402085424)
67504
+ Migrating to AddPositionToQwesterPresentationQuestionnaires (20130502082731)
67505
+ Migrating to AddMustCompleteToQwesterQuestionnaires (20131119142050)
67506
+  (0.1ms) select sqlite_version(*)
67507
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
67508
+ Connecting to database specified by database.yml
67509
+
67510
+
67511
+ Started GET "/" for 127.0.0.1 at 2015-07-27 16:03:14 +0100
67512
+ Processing by Qwester::QuestionnairesController#index as HTML
67513
+ Qwester::Presentation Load (0.3ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
67514
+ Qwester::Questionnaire Load (0.5ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
67515
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (142.8ms)
67516
+ Compiled jquery.js (4ms) (pid 28244)
67517
+ Compiled jquery_ujs.js (0ms) (pid 28244)
67518
+ Compiled active_admin/lib/namespace.js (1499ms) (pid 28244)
67519
+ Compiled active_admin/components/jquery.aa.checkbox-toggler.js (157ms) (pid 28244)
67520
+ Compiled active_admin/components/jquery.aa.dropdown-menu.js (130ms) (pid 28244)
67521
+ Compiled active_admin/components/jquery.aa.popover.js (96ms) (pid 28244)
67522
+ Compiled active_admin/components/jquery.aa.table-checkbox-toggler.js (21ms) (pid 28244)
67523
+ Compiled active_admin/pages/application.js (3ms) (pid 28244)
67524
+ Compiled active_admin/pages/batch_actions.js (10ms) (pid 28244)
67525
+ Compiled active_admin/application.js (2511ms) (pid 28244)
67526
+ Compiled active_admin.js (2647ms) (pid 28244)
67527
+ Compiled application.js (3277ms) (pid 28244)
67528
+ Completed 200 OK in 4567ms (Views: 4276.0ms | ActiveRecord: 6.6ms)
67529
+
67530
+
67531
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-07-27 16:03:19 +0100
67532
+ Served asset /application.css - 200 OK (147ms)
67533
+
67534
+
67535
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:03:19 +0100
67536
+ Served asset /active_admin.css - 200 OK (54ms)
67537
+
67538
+
67539
+ Started GET "/assets/questionnaires.css?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67540
+ Served asset /questionnaires.css - 200 OK (12ms)
67541
+
67542
+
67543
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67544
+ Served asset /jquery_ujs.js - 200 OK (25ms)
67545
+
67546
+
67547
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67548
+ Served asset /active_admin/lib/namespace.js - 200 OK (7ms)
67549
+
67550
+
67551
+ Started GET "/assets/active_admin/components/jquery.aa.popover.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67552
+ Served asset /active_admin/components/jquery.aa.popover.js - 200 OK (17ms)
67553
+
67554
+
67555
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67556
+ Served asset /jquery.js - 200 OK (84ms)
67557
+
67558
+
67559
+ Started GET "/assets/active_admin/components/jquery.aa.checkbox-toggler.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67560
+ Served asset /active_admin/components/jquery.aa.checkbox-toggler.js - 200 OK (10ms)
67561
+
67562
+
67563
+ Started GET "/assets/active_admin/components/jquery.aa.dropdown-menu.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67564
+ Served asset /active_admin/components/jquery.aa.dropdown-menu.js - 200 OK (7ms)
67565
+
67566
+
67567
+ Started GET "/assets/active_admin/components/jquery.aa.table-checkbox-toggler.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67568
+ Served asset /active_admin/components/jquery.aa.table-checkbox-toggler.js - 200 OK (2ms)
67569
+
67570
+
67571
+ Started GET "/assets/active_admin/pages/application.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67572
+ Served asset /active_admin/pages/application.js - 200 OK (5ms)
67573
+
67574
+
67575
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67576
+ Served asset /active_admin/application.js - 304 Not Modified (33ms)
67577
+
67578
+
67579
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:20 +0100
67580
+ Served asset /active_admin.js - 200 OK (41ms)
67581
+
67582
+
67583
+ Started GET "/assets/questionnaires.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:21 +0100
67584
+ Served asset /questionnaires.js - 200 OK (15ms)
67585
+
67586
+
67587
+ Started GET "/assets/active_admin/pages/batch_actions.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:21 +0100
67588
+ Served asset /active_admin/pages/batch_actions.js - 200 OK (6ms)
67589
+
67590
+
67591
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:21 +0100
67592
+ Served asset /application.js - 200 OK (78ms)
67593
+
67594
+
67595
+ Started GET "/admin" for 127.0.0.1 at 2015-07-27 16:03:31 +0100
67596
+ Processing by Admin::DashboardController#index as HTML
67597
+ Completed 401 Unauthorized in 2ms
67598
+
67599
+
67600
+ Started GET "/admin/login" for 127.0.0.1 at 2015-07-27 16:03:31 +0100
67601
+ Processing by ActiveAdmin::Devise::SessionsController#new as HTML
67602
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.5ms)
67603
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (656.3ms)
67604
+ Warning. Error encountered while saving cache /home/rob/web/qwester/test/dummy/tmp/cache/sass/79205d5fab1ffa9f1f5f715dfb6dee34a3f5c9ed/print.css.scssc: can't dump anonymous class #<Class:0x9b67afc>
67605
+ Warning. Error encountered while saving cache /home/rob/web/qwester/test/dummy/tmp/cache/sass/e2f9abaa453decea09d6572b0c7ccab51155d4ce/_reset.css.scssc: can't dump anonymous class #<Class:0x9b67afc>
67606
+ Warning. Error encountered while saving cache /home/rob/web/qwester/test/dummy/tmp/cache/sass/79205d5fab1ffa9f1f5f715dfb6dee34a3f5c9ed/_typography.css.scssc: can't dump anonymous class #<Class:0x9b67afc>
67607
+ Compiled active_admin/print.css (348ms) (pid 28244)
67608
+ Completed 200 OK in 1389ms (Views: 1342.4ms | ActiveRecord: 2.6ms)
67609
+
67610
+
67611
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2015-07-27 16:03:33 +0100
67612
+ Served asset /active_admin/application.js - 304 Not Modified (5ms)
67613
+
67614
+
67615
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:03:33 +0100
67616
+ Served asset /active_admin/print.css - 200 OK (86ms)
67617
+
67618
+
67619
+ Started POST "/admin/login" for 127.0.0.1 at 2015-07-27 16:03:42 +0100
67620
+ Processing by ActiveAdmin::Devise::SessionsController#create as HTML
67621
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"NZL1nSDixCFhugI7T8f7LZK11dXDe/299nyT69eZYVc=", "admin_user"=>{"email"=>"admin@warwickshire.gov.uk", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Login"}
67622
+ AdminUser Load (2.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'admin@warwickshire.gov.uk' LIMIT 1
67623
+  (0.1ms) begin transaction
67624
+  (19.8ms) UPDATE "admin_users" SET "last_sign_in_at" = '2014-07-02 07:09:34.048076', "current_sign_in_at" = '2015-07-27 15:03:43.158606', "sign_in_count" = 14, "updated_at" = '2015-07-27 15:03:43.162316' WHERE "admin_users"."id" = 1
67625
+  (266.4ms) commit transaction
67626
+ Redirected to http://localhost:3000/admin
67627
+ Completed 302 Found in 678ms (ActiveRecord: 0.0ms)
67628
+
67629
+
67630
+ Started GET "/admin" for 127.0.0.1 at 2015-07-27 16:03:43 +0100
67631
+ Processing by Admin::DashboardController#index as HTML
67632
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67633
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (83.3ms)
67634
+ Completed 200 OK in 115ms (Views: 113.4ms | ActiveRecord: 0.3ms)
67635
+
67636
+
67637
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:03:43 +0100
67638
+ Served asset /application.js - 200 OK (0ms)
67639
+
67640
+
67641
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:03:44 +0100
67642
+ Served asset /active_admin.js - 200 OK (1ms)
67643
+
67644
+
67645
+ Started GET "/assets/active_admin/nested_menu_arrow.gif" for 127.0.0.1 at 2015-07-27 16:03:45 +0100
67646
+ Served asset /active_admin/nested_menu_arrow.gif - 304 Not Modified (53ms)
67647
+
67648
+
67649
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2015-07-27 16:03:48 +0100
67650
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (37ms)
67651
+
67652
+
67653
+ Started GET "/admin/qwester_questionnaires" for 127.0.0.1 at 2015-07-27 16:03:53 +0100
67654
+ Processing by Admin::QwesterQuestionnairesController#index as HTML
67655
+ AdminUser Load (0.4ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67656
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questionnaires" LIMIT 30 OFFSET 0) subquery_for_count 
67657
+  (1.0ms) SELECT COUNT(*) FROM "qwester_questionnaires"
67658
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questionnaires" LIMIT 30 OFFSET 0) subquery_for_count 
67659
+ Qwester::Questionnaire Load (0.4ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" ORDER BY "qwester_questionnaires"."id" desc LIMIT 30 OFFSET 0
67660
+  (4.9ms) SELECT DISTINCT COUNT(DISTINCT "qwester_questions"."id") FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2
67661
+  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "qwester_questions"."id") FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1
67662
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (1126.1ms)
67663
+ Completed 200 OK in 1186ms (Views: 1153.1ms | ActiveRecord: 15.6ms)
67664
+
67665
+
67666
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2015-07-27 16:03:55 +0100
67667
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (0ms)
67668
+
67669
+
67670
+ Started GET "/assets/active_admin/orderable.png" for 127.0.0.1 at 2015-07-27 16:03:55 +0100
67671
+ Served asset /active_admin/orderable.png - 304 Not Modified (62ms)
67672
+
67673
+
67674
+ Started GET "/assets/active_admin/datepicker/datepicker-input-icon.png" for 127.0.0.1 at 2015-07-27 16:03:55 +0100
67675
+ Served asset /active_admin/datepicker/datepicker-input-icon.png - 304 Not Modified (38ms)
67676
+
67677
+
67678
+ Started GET "/admin/qwester_questionnaires/2/edit" for 127.0.0.1 at 2015-07-27 16:03:59 +0100
67679
+ Processing by Admin::QwesterQuestionnairesController#edit as HTML
67680
+ Parameters: {"id"=>"2"}
67681
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67682
+ Qwester::Questionnaire Load (0.4ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67683
+ Qwester::Question Load (0.4ms) SELECT "qwester_questions".* FROM "qwester_questions" 
67684
+ Qwester::Question Load (0.3ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
67685
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (347.5ms)
67686
+ Completed 200 OK in 397ms (Views: 386.3ms | ActiveRecord: 1.4ms)
67687
+
67688
+
67689
+ Started PUT "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2015-07-27 16:04:34 +0100
67690
+ Processing by Admin::QwesterQuestionnairesController#update as HTML
67691
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"+7aX2WoR3gsWBcjESYW4o0tkUm4xeWQOTrAMweb3rMI=", "qwester_questionnaire"=>{"title"=>"Qwester", "description"=>"", "must_complete"=>"1", "button_image"=>#<ActionDispatch::Http::UploadedFile:0xb7c972c @original_filename="wcclogo.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"qwester_questionnaire[button_image]\"; filename=\"wcclogo.png\"\r\nContent-Type: image/png\r\n", @tempfile=#<File:/tmp/RackMultipart20150727-28244-pyiv02>>, "question_ids"=>["", "3"]}, "commit"=>"Update Questionnaire", "id"=>"2"}
67692
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67693
+ Qwester::Questionnaire Load (0.9ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67694
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]' 2>/dev/null
67695
+ Command :: identify -format %m '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]'
67696
+ Command :: identify -format %m '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]'
67697
+ Command :: identify -format %m '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]'
67698
+ Command :: convert '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]' -auto-orient -resize "150x125>" '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu20150727-28244-1xuaqsx'
67699
+ Command :: file -b --mime '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu20150727-28244-1xuaqsx'
67700
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]' 2>/dev/null
67701
+ Command :: identify -format %m '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]'
67702
+ Command :: identify -format %m '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]'
67703
+ Command :: identify -format %m '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]'
67704
+ Command :: convert '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu.png[0]' -auto-orient -resize "50x50>" '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu20150727-28244-vp6eyz'
67705
+ Command :: file -b --mime '/tmp/9b9dd630a3303357910f93a0f48dca1420150727-28244-ulhmhu20150727-28244-vp6eyz'
67706
+ Qwester::Question Load (6.9ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = ? LIMIT 1 [["id", 3]]
67707
+ Qwester::Question Load (6.3ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
67708
+  (0.1ms) begin transaction
67709
+  (0.1ms) commit transaction
67710
+  (0.2ms) begin transaction
67711
+  (5.4ms) UPDATE "qwester_questionnaires" SET "button_image_file_name" = 'wcclogo.png', "button_image_file_size" = 7720, "button_image_updated_at" = '2015-07-27 15:04:34.148465', "updated_at" = '2015-07-27 15:04:39.374135' WHERE "qwester_questionnaires"."id" = 2
67712
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/original/qwester.png
67713
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/link/qwester.png
67714
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/thumbnail/qwester.png
67715
+  (137.8ms) commit transaction
67716
+ Redirected to http://localhost:3000/admin/qwester_questionnaires/2
67717
+ Completed 302 Found in 5733ms (ActiveRecord: 0.0ms)
67718
+
67719
+
67720
+ Started GET "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2015-07-27 16:04:39 +0100
67721
+ Processing by Admin::QwesterQuestionnairesController#show as HTML
67722
+ Parameters: {"id"=>"2"}
67723
+ AdminUser Load (0.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67724
+ Qwester::Questionnaire Load (0.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67725
+ Qwester::Question Load (0.5ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
67726
+ Qwester::QuestionnairesQuestion Load (0.4ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
67727
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
67728
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND (qwester_questionnaires_questions.position IS NOT NULL) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
67729
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (193.9ms)
67730
+ Completed 200 OK in 242ms (Views: 221.9ms | ActiveRecord: 2.2ms)
67731
+ Connecting to database specified by database.yml
67732
+
67733
+
67734
+ Started GET "/admin/qwester_questionnaires/2/edit" for 127.0.0.1 at 2015-07-27 16:07:02 +0100
67735
+ Processing by Admin::QwesterQuestionnairesController#edit as HTML
67736
+ Parameters: {"id"=>"2"}
67737
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67738
+ Qwester::Questionnaire Load (1.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67739
+ Qwester::Question Load (0.4ms) SELECT "qwester_questions".* FROM "qwester_questions" 
67740
+ Qwester::Question Load (0.6ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
67741
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (1226.4ms)
67742
+ Completed 200 OK in 1441ms (Views: 1292.9ms | ActiveRecord: 8.5ms)
67743
+
67744
+
67745
+ Started PUT "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2015-07-27 16:07:18 +0100
67746
+ Processing by Admin::QwesterQuestionnairesController#update as HTML
67747
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"+7aX2WoR3gsWBcjESYW4o0tkUm4xeWQOTrAMweb3rMI=", "qwester_questionnaire"=>{"title"=>"Qwester", "description"=>"", "must_complete"=>"1", "button_image"=>#<ActionDispatch::Http::UploadedFile:0xac67d20 @original_filename="qwester.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"qwester_questionnaire[button_image]\"; filename=\"qwester.png\"\r\nContent-Type: image/png\r\n", @tempfile=#<File:/tmp/RackMultipart20150727-28490-esog6a>>, "question_ids"=>["", "3"]}, "commit"=>"Update Questionnaire", "id"=>"2"}
67748
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67749
+ Qwester::Questionnaire Load (3.6ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67750
+ Completed 500 Internal Server Error in 17ms
67751
+
67752
+ Paperclip::Errors::MissingRequiredValidatorError (Paperclip::Errors::MissingRequiredValidatorError):
67753
+ paperclip (4.3.0) lib/paperclip/attachment.rb:401:in `ensure_required_validations!'
67754
+ paperclip (4.3.0) lib/paperclip/attachment.rb:99:in `assign'
67755
+ paperclip (4.3.0) lib/paperclip/has_attached_file.rb:66:in `block in define_setter'
67756
+ activerecord (3.2.14) lib/active_record/attribute_assignment.rb:85:in `block in assign_attributes'
67757
+ activerecord (3.2.14) lib/active_record/attribute_assignment.rb:78:in `each'
67758
+ activerecord (3.2.14) lib/active_record/attribute_assignment.rb:78:in `assign_attributes'
67759
+ activeadmin (0.5.1) lib/active_admin/resource_controller/callbacks.rb:38:in `update_resource'
67760
+ inherited_resources (1.4.1) lib/inherited_resources/actions.rb:45:in `update'
67761
+ activeadmin (0.5.1) lib/active_admin/resource_controller/actions.rb:56:in `update'
67762
+ actionpack (3.2.14) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
67763
+ actionpack (3.2.14) lib/abstract_controller/base.rb:167:in `process_action'
67764
+ actionpack (3.2.14) lib/action_controller/metal/rendering.rb:10:in `process_action'
67765
+ actionpack (3.2.14) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
67766
+ activesupport (3.2.14) lib/active_support/callbacks.rb:447:in `_run__1057637226__process_action__966936463__callbacks'
67767
+ activesupport (3.2.14) lib/active_support/callbacks.rb:405:in `__run_callback'
67768
+ activesupport (3.2.14) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
67769
+ activesupport (3.2.14) lib/active_support/callbacks.rb:81:in `run_callbacks'
67770
+ actionpack (3.2.14) lib/abstract_controller/callbacks.rb:17:in `process_action'
67771
+ actionpack (3.2.14) lib/action_controller/metal/rescue.rb:29:in `process_action'
67772
+ actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
67773
+ activesupport (3.2.14) lib/active_support/notifications.rb:123:in `block in instrument'
67774
+ activesupport (3.2.14) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
67775
+ activesupport (3.2.14) lib/active_support/notifications.rb:123:in `instrument'
67776
+ actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
67777
+ actionpack (3.2.14) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
67778
+ activerecord (3.2.14) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
67779
+ actionpack (3.2.14) lib/abstract_controller/base.rb:121:in `process'
67780
+ actionpack (3.2.14) lib/abstract_controller/rendering.rb:45:in `process'
67781
+ actionpack (3.2.14) lib/action_controller/metal.rb:203:in `dispatch'
67782
+ actionpack (3.2.14) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
67783
+ actionpack (3.2.14) lib/action_controller/metal.rb:246:in `block in action'
67784
+ actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in `call'
67785
+ actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
67786
+ actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:36:in `call'
67787
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
67788
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
67789
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
67790
+ actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:608:in `call'
67791
+ warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
67792
+ warden (1.2.3) lib/warden/manager.rb:34:in `catch'
67793
+ warden (1.2.3) lib/warden/manager.rb:34:in `call'
67794
+ actionpack (3.2.14) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
67795
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
67796
+ rack (1.4.5) lib/rack/conditionalget.rb:35:in `call'
67797
+ actionpack (3.2.14) lib/action_dispatch/middleware/head.rb:14:in `call'
67798
+ actionpack (3.2.14) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
67799
+ actionpack (3.2.14) lib/action_dispatch/middleware/flash.rb:242:in `call'
67800
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
67801
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
67802
+ actionpack (3.2.14) lib/action_dispatch/middleware/cookies.rb:341:in `call'
67803
+ activerecord (3.2.14) lib/active_record/query_cache.rb:64:in `call'
67804
+ activerecord (3.2.14) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
67805
+ actionpack (3.2.14) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
67806
+ activesupport (3.2.14) lib/active_support/callbacks.rb:405:in `_run__77487107__call__259272618__callbacks'
67807
+ activesupport (3.2.14) lib/active_support/callbacks.rb:405:in `__run_callback'
67808
+ activesupport (3.2.14) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
67809
+ activesupport (3.2.14) lib/active_support/callbacks.rb:81:in `run_callbacks'
67810
+ actionpack (3.2.14) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
67811
+ actionpack (3.2.14) lib/action_dispatch/middleware/reloader.rb:65:in `call'
67812
+ actionpack (3.2.14) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
67813
+ actionpack (3.2.14) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
67814
+ actionpack (3.2.14) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
67815
+ railties (3.2.14) lib/rails/rack/logger.rb:32:in `call_app'
67816
+ railties (3.2.14) lib/rails/rack/logger.rb:16:in `block in call'
67817
+ activesupport (3.2.14) lib/active_support/tagged_logging.rb:22:in `tagged'
67818
+ railties (3.2.14) lib/rails/rack/logger.rb:16:in `call'
67819
+ actionpack (3.2.14) lib/action_dispatch/middleware/request_id.rb:22:in `call'
67820
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
67821
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
67822
+ activesupport (3.2.14) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
67823
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
67824
+ actionpack (3.2.14) lib/action_dispatch/middleware/static.rb:63:in `call'
67825
+ railties (3.2.14) lib/rails/engine.rb:484:in `call'
67826
+ railties (3.2.14) lib/rails/application.rb:231:in `call'
67827
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
67828
+ railties (3.2.14) lib/rails/rack/log_tailer.rb:17:in `call'
67829
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
67830
+ /home/rob/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
67831
+ /home/rob/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
67832
+ /home/rob/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
67833
+
67834
+
67835
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/actionpack-3.2.14/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
67836
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/actionpack-3.2.14/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
67837
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/actionpack-3.2.14/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (156.8ms)
67838
+
67839
+
67840
+ Started PUT "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2015-07-27 16:10:37 +0100
67841
+ Processing by Admin::QwesterQuestionnairesController#update as HTML
67842
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"+7aX2WoR3gsWBcjESYW4o0tkUm4xeWQOTrAMweb3rMI=", "qwester_questionnaire"=>{"title"=>"Qwester", "description"=>"", "must_complete"=>"1", "button_image"=>#<ActionDispatch::Http::UploadedFile:0xb60661dc @original_filename="qwester.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"qwester_questionnaire[button_image]\"; filename=\"qwester.png\"\r\nContent-Type: image/png\r\n", @tempfile=#<File:/tmp/RackMultipart20150727-28490-1vyrgh0>>, "question_ids"=>["", "3"]}, "commit"=>"Update Questionnaire", "id"=>"2"}
67843
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67844
+ Qwester::Questionnaire Load (0.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67845
+ Command :: file -b --mime '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1q0j62g.png'
67846
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1ed1p0b.png[0]' 2>/dev/null
67847
+ Command :: identify -format %m '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1ed1p0b.png[0]'
67848
+ Command :: convert '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1ed1p0b.png[0]' -auto-orient -resize "150x125>" '/tmp/30f0a4d826be13b40ce4c09f3eae3f6c20150727-28490-sm3oi'
67849
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1ed1p0b.png[0]' 2>/dev/null
67850
+ Command :: identify -format %m '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1ed1p0b.png[0]'
67851
+ Command :: convert '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1ed1p0b.png[0]' -auto-orient -resize "50x50>" '/tmp/30f0a4d826be13b40ce4c09f3eae3f6c20150727-28490-z878ou'
67852
+ Qwester::Question Load (88.3ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = ? LIMIT 1 [["id", 3]]
67853
+ Qwester::Question Load (0.6ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
67854
+  (0.3ms) begin transaction
67855
+  (0.3ms) commit transaction
67856
+  (7.8ms) begin transaction
67857
+ Command :: file -b --mime '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-ga7267.png'
67858
+  (17.5ms) UPDATE "qwester_questionnaires" SET "button_image_file_name" = 'qwester.png', "button_image_file_size" = 9085, "button_image_updated_at" = '2015-07-27 15:10:38.434209', "updated_at" = '2015-07-27 15:10:41.273342' WHERE "qwester_questionnaires"."id" = 2
67859
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/original/wcclogo.png
67860
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/link/wcclogo.png
67861
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/thumbnail/wcclogo.png
67862
+  (153.2ms) commit transaction
67863
+ Redirected to http://localhost:3000/admin/qwester_questionnaires/2
67864
+ Completed 302 Found in 3638ms (ActiveRecord: 0.0ms)
67865
+
67866
+
67867
+ Started GET "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2015-07-27 16:10:42 +0100
67868
+ Processing by Admin::QwesterQuestionnairesController#show as HTML
67869
+ Parameters: {"id"=>"2"}
67870
+ AdminUser Load (0.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67871
+ Qwester::Questionnaire Load (0.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67872
+ Qwester::Question Load (0.4ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
67873
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
67874
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
67875
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND (qwester_questionnaires_questions.position IS NOT NULL) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
67876
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (152.0ms)
67877
+ Completed 200 OK in 187ms (Views: 161.0ms | ActiveRecord: 2.0ms)
67878
+
67879
+
67880
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:10:42 +0100
67881
+ Served asset /active_admin.css - 304 Not Modified (209ms)
67882
+
67883
+
67884
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:10:42 +0100
67885
+ Served asset /active_admin.js - 304 Not Modified (88ms)
67886
+
67887
+
67888
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:10:42 +0100
67889
+ Served asset /application.js - 304 Not Modified (256ms)
67890
+
67891
+
67892
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:10:43 +0100
67893
+ Served asset /active_admin/print.css - 304 Not Modified (17ms)
67894
+
67895
+
67896
+ Started GET "/admin/qwester_questionnaires/2/edit" for 127.0.0.1 at 2015-07-27 16:10:48 +0100
67897
+ Processing by Admin::QwesterQuestionnairesController#edit as HTML
67898
+ Parameters: {"id"=>"2"}
67899
+ AdminUser Load (0.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67900
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67901
+ Qwester::Question Load (5.9ms) SELECT "qwester_questions".* FROM "qwester_questions"
67902
+ Qwester::Question Load (0.5ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
67903
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (367.4ms)
67904
+ Completed 200 OK in 397ms (Views: 378.0ms | ActiveRecord: 7.1ms)
67905
+
67906
+
67907
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:10:49 +0100
67908
+ Served asset /active_admin.css - 304 Not Modified (30ms)
67909
+
67910
+
67911
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:10:49 +0100
67912
+ Served asset /application.js - 304 Not Modified (39ms)
67913
+
67914
+
67915
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:10:49 +0100
67916
+ Served asset /active_admin.js - 304 Not Modified (4ms)
67917
+
67918
+
67919
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:10:49 +0100
67920
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
67921
+
67922
+
67923
+ Started PUT "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2015-07-27 16:10:55 +0100
67924
+ Processing by Admin::QwesterQuestionnairesController#update as HTML
67925
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"+7aX2WoR3gsWBcjESYW4o0tkUm4xeWQOTrAMweb3rMI=", "qwester_questionnaire"=>{"title"=>"Qwester", "description"=>"", "must_complete"=>"1", "button_image"=>#<ActionDispatch::Http::UploadedFile:0xb6292e38 @original_filename="blue.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"qwester_questionnaire[button_image]\"; filename=\"blue.png\"\r\nContent-Type: image/png\r\n", @tempfile=#<File:/tmp/RackMultipart20150727-28490-1pk76fd>>, "question_ids"=>["", "3"]}, "commit"=>"Update Questionnaire", "id"=>"2"}
67926
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67927
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67928
+ Command :: file -b --mime '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-whwd5m.png'
67929
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-vjzp5t.png[0]' 2>/dev/null
67930
+ Command :: identify -format %m '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-vjzp5t.png[0]'
67931
+ Command :: convert '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-vjzp5t.png[0]' -auto-orient -resize "150x125>" '/tmp/b0cf300820ac00bc93d824d9a2edb46520150727-28490-179j5xa'
67932
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-vjzp5t.png[0]' 2>/dev/null
67933
+ Command :: identify -format %m '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-vjzp5t.png[0]'
67934
+ Command :: convert '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-vjzp5t.png[0]' -auto-orient -resize "50x50>" '/tmp/b0cf300820ac00bc93d824d9a2edb46520150727-28490-czdwfs'
67935
+ Qwester::Question Load (1.4ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = ? LIMIT 1 [["id", 3]]
67936
+ Qwester::Question Load (12.9ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
67937
+  (0.3ms) begin transaction
67938
+  (0.2ms) commit transaction
67939
+  (0.1ms) begin transaction
67940
+ Command :: file -b --mime '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-1oqryut.png'
67941
+  (5.6ms) UPDATE "qwester_questionnaires" SET "button_image_file_name" = 'blue.png', "button_image_file_size" = 8702, "button_image_updated_at" = '2015-07-27 15:10:56.069681', "updated_at" = '2015-07-27 15:10:57.748063' WHERE "qwester_questionnaires"."id" = 2
67942
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/original/qwester.png
67943
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/link/qwester.png
67944
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/thumbnail/qwester.png
67945
+  (148.1ms) commit transaction
67946
+ Redirected to http://localhost:3000/admin/qwester_questionnaires/2
67947
+ Completed 302 Found in 2124ms (ActiveRecord: 0.0ms)
67948
+
67949
+
67950
+ Started GET "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2015-07-27 16:10:58 +0100
67951
+ Processing by Admin::QwesterQuestionnairesController#show as HTML
67952
+ Parameters: {"id"=>"2"}
67953
+ AdminUser Load (0.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67954
+ Qwester::Questionnaire Load (4.5ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
67955
+ Qwester::Question Load (0.7ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
67956
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
67957
+ CACHE (9.2ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
67958
+ Qwester::QuestionnairesQuestion Load (0.4ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND (qwester_questionnaires_questions.position IS NOT NULL) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
67959
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (145.4ms)
67960
+ Completed 200 OK in 166ms (Views: 143.8ms | ActiveRecord: 15.5ms)
67961
+
67962
+
67963
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:10:58 +0100
67964
+ Served asset /active_admin.css - 304 Not Modified (50ms)
67965
+
67966
+
67967
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:10:58 +0100
67968
+ Served asset /application.js - 304 Not Modified (19ms)
67969
+
67970
+
67971
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:10:59 +0100
67972
+ Served asset /active_admin.js - 304 Not Modified (18ms)
67973
+
67974
+
67975
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:10:59 +0100
67976
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
67977
+
67978
+
67979
+ Started GET "/" for 127.0.0.1 at 2015-07-27 16:11:07 +0100
67980
+ Processing by Qwester::QuestionnairesController#index as HTML
67981
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
67982
+ Qwester::Questionnaire Load (5.9ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
67983
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (25.3ms)
67984
+ Completed 200 OK in 210ms (Views: 170.5ms | ActiveRecord: 9.6ms)
67985
+
67986
+
67987
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:07 +0100
67988
+ Served asset /active_admin.css - 304 Not Modified (20ms)
67989
+
67990
+
67991
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2015-07-27 16:11:07 +0100
67992
+ Served asset /active_admin/application.js - 304 Not Modified (44ms)
67993
+
67994
+
67995
+ Started GET "/admin/qwester_questionnaires" for 127.0.0.1 at 2015-07-27 16:11:24 +0100
67996
+ Processing by Admin::QwesterQuestionnairesController#index as HTML
67997
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
67998
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questionnaires" LIMIT 30 OFFSET 0) subquery_for_count
67999
+  (0.2ms) SELECT COUNT(*) FROM "qwester_questionnaires" 
68000
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questionnaires" LIMIT 30 OFFSET 0) subquery_for_count
68001
+ Qwester::Questionnaire Load (0.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" ORDER BY "qwester_questionnaires"."id" desc LIMIT 30 OFFSET 0
68002
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "qwester_questions"."id") FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2
68003
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "qwester_questions"."id") FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1
68004
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (775.1ms)
68005
+ Completed 200 OK in 798ms (Views: 785.0ms | ActiveRecord: 1.7ms)
68006
+
68007
+
68008
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:25 +0100
68009
+ Served asset /active_admin.css - 304 Not Modified (120ms)
68010
+
68011
+
68012
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:11:25 +0100
68013
+ Served asset /application.js - 304 Not Modified (21ms)
68014
+
68015
+
68016
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:11:25 +0100
68017
+ Served asset /active_admin.js - 304 Not Modified (12ms)
68018
+
68019
+
68020
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:25 +0100
68021
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
68022
+
68023
+
68024
+ Started GET "/admin/qwester_questionnaires/2/edit" for 127.0.0.1 at 2015-07-27 16:11:29 +0100
68025
+ Processing by Admin::QwesterQuestionnairesController#edit as HTML
68026
+ Parameters: {"id"=>"2"}
68027
+ AdminUser Load (2.7ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
68028
+ Qwester::Questionnaire Load (9.4ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
68029
+ Qwester::Question Load (0.3ms) SELECT "qwester_questions".* FROM "qwester_questions"
68030
+ Qwester::Question Load (0.4ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
68031
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (265.9ms)
68032
+ Completed 200 OK in 286ms (Views: 269.5ms | ActiveRecord: 12.9ms)
68033
+
68034
+
68035
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:30 +0100
68036
+ Served asset /active_admin.css - 304 Not Modified (19ms)
68037
+
68038
+
68039
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:11:30 +0100
68040
+ Served asset /application.js - 304 Not Modified (24ms)
68041
+
68042
+
68043
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:11:30 +0100
68044
+ Served asset /active_admin.js - 304 Not Modified (12ms)
68045
+
68046
+
68047
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:30 +0100
68048
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
68049
+
68050
+
68051
+ Started PUT "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2015-07-27 16:11:40 +0100
68052
+ Processing by Admin::QwesterQuestionnairesController#update as HTML
68053
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"+7aX2WoR3gsWBcjESYW4o0tkUm4xeWQOTrAMweb3rMI=", "qwester_questionnaire"=>{"title"=>"Qwester", "description"=>"", "must_complete"=>"1", "button_image"=>#<ActionDispatch::Http::UploadedFile:0xb63e47a0 @original_filename="qwester.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"qwester_questionnaire[button_image]\"; filename=\"qwester.png\"\r\nContent-Type: image/png\r\n", @tempfile=#<File:/tmp/RackMultipart20150727-28490-9nx5y4>>, "question_ids"=>["", "3"]}, "commit"=>"Update Questionnaire", "id"=>"2"}
68054
+ AdminUser Load (0.6ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
68055
+ Qwester::Questionnaire Load (1.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
68056
+ Command :: file -b --mime '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-94siow.png'
68057
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1okprnk.png[0]' 2>/dev/null
68058
+ Command :: identify -format %m '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1okprnk.png[0]'
68059
+ Command :: convert '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1okprnk.png[0]' -auto-orient -resize "150x125>" '/tmp/c6f0a85c39b5f9ccf8b9a021061bd32820150727-28490-1lvpb1l'
68060
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1okprnk.png[0]' 2>/dev/null
68061
+ Command :: identify -format %m '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1okprnk.png[0]'
68062
+ Command :: convert '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-1okprnk.png[0]' -auto-orient -resize "50x50>" '/tmp/c6f0a85c39b5f9ccf8b9a021061bd32820150727-28490-csw0rh'
68063
+ Qwester::Question Load (1.3ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = ? LIMIT 1 [["id", 3]]
68064
+ Qwester::Question Load (6.5ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
68065
+  (0.4ms) begin transaction
68066
+  (0.2ms) commit transaction
68067
+  (0.0ms) begin transaction
68068
+ Command :: file -b --mime '/tmp/233e83d81b8e3c4bd470bc339d84ab0720150727-28490-pamzg2.png'
68069
+  (9.9ms) UPDATE "qwester_questionnaires" SET "button_image_file_name" = 'qwester.png', "button_image_file_size" = 9085, "button_image_updated_at" = '2015-07-27 15:11:40.438739', "updated_at" = '2015-07-27 15:11:42.460923' WHERE "qwester_questionnaires"."id" = 2
68070
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/original/blue.png
68071
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/link/blue.png
68072
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/002/thumbnail/blue.png
68073
+  (173.1ms) commit transaction
68074
+ Redirected to http://localhost:3000/admin/qwester_questionnaires/2
68075
+ Completed 302 Found in 2478ms (ActiveRecord: 0.0ms)
68076
+
68077
+
68078
+ Started GET "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2015-07-27 16:11:42 +0100
68079
+ Processing by Admin::QwesterQuestionnairesController#show as HTML
68080
+ Parameters: {"id"=>"2"}
68081
+ AdminUser Load (0.7ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
68082
+ Qwester::Questionnaire Load (6.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
68083
+ Qwester::Question Load (0.9ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
68084
+ Qwester::QuestionnairesQuestion Load (0.5ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
68085
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
68086
+ Qwester::QuestionnairesQuestion Load (0.5ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND (qwester_questionnaires_questions.position IS NOT NULL) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
68087
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (176.9ms)
68088
+ Completed 200 OK in 208ms (Views: 183.1ms | ActiveRecord: 8.8ms)
68089
+
68090
+
68091
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:43 +0100
68092
+ Served asset /active_admin.css - 304 Not Modified (242ms)
68093
+
68094
+
68095
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:11:43 +0100
68096
+ Served asset /active_admin.js - 304 Not Modified (13ms)
68097
+
68098
+
68099
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:11:43 +0100
68100
+ Served asset /application.js - 304 Not Modified (27ms)
68101
+
68102
+
68103
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:43 +0100
68104
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
68105
+
68106
+
68107
+ Started GET "/admin/qwester_questionnaires" for 127.0.0.1 at 2015-07-27 16:11:47 +0100
68108
+ Processing by Admin::QwesterQuestionnairesController#index as HTML
68109
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
68110
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questionnaires" LIMIT 30 OFFSET 0) subquery_for_count
68111
+  (0.2ms) SELECT COUNT(*) FROM "qwester_questionnaires" 
68112
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questionnaires" LIMIT 30 OFFSET 0) subquery_for_count
68113
+ Qwester::Questionnaire Load (0.4ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" ORDER BY "qwester_questionnaires"."id" desc LIMIT 30 OFFSET 0
68114
+  (0.5ms) SELECT DISTINCT COUNT(DISTINCT "qwester_questions"."id") FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2
68115
+  (0.4ms) SELECT DISTINCT COUNT(DISTINCT "qwester_questions"."id") FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1
68116
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (471.9ms)
68117
+ Completed 200 OK in 486ms (Views: 475.4ms | ActiveRecord: 2.2ms)
68118
+
68119
+
68120
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:47 +0100
68121
+ Served asset /active_admin.css - 304 Not Modified (24ms)
68122
+
68123
+
68124
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:11:47 +0100
68125
+ Served asset /application.js - 304 Not Modified (16ms)
68126
+
68127
+
68128
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:11:48 +0100
68129
+ Served asset /active_admin.js - 304 Not Modified (1ms)
68130
+
68131
+
68132
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:48 +0100
68133
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
68134
+
68135
+
68136
+ Started GET "/admin/qwester_questionnaires/1/edit" for 127.0.0.1 at 2015-07-27 16:11:51 +0100
68137
+ Processing by Admin::QwesterQuestionnairesController#edit as HTML
68138
+ Parameters: {"id"=>"1"}
68139
+ AdminUser Load (0.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
68140
+ Qwester::Questionnaire Load (0.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
68141
+ Qwester::Question Load (0.3ms) SELECT "qwester_questions".* FROM "qwester_questions"
68142
+ Qwester::Question Load (0.4ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 ORDER BY position
68143
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (279.1ms)
68144
+ Completed 200 OK in 294ms (Views: 283.1ms | ActiveRecord: 1.4ms)
68145
+
68146
+
68147
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:51 +0100
68148
+ Served asset /active_admin.css - 304 Not Modified (121ms)
68149
+
68150
+
68151
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:11:51 +0100
68152
+ Served asset /application.js - 304 Not Modified (19ms)
68153
+
68154
+
68155
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:11:51 +0100
68156
+ Served asset /active_admin.js - 304 Not Modified (12ms)
68157
+
68158
+
68159
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:11:51 +0100
68160
+ Served asset /active_admin/print.css - 304 Not Modified (8ms)
68161
+
68162
+
68163
+ Started PUT "/admin/qwester_questionnaires/1" for 127.0.0.1 at 2015-07-27 16:12:13 +0100
68164
+ Processing by Admin::QwesterQuestionnairesController#update as HTML
68165
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"+7aX2WoR3gsWBcjESYW4o0tkUm4xeWQOTrAMweb3rMI=", "qwester_questionnaire"=>{"title"=>"Blue", "description"=>"", "must_complete"=>"0", "button_image"=>#<ActionDispatch::Http::UploadedFile:0xa950ac4 @original_filename="blue.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"qwester_questionnaire[button_image]\"; filename=\"blue.png\"\r\nContent-Type: image/png\r\n", @tempfile=#<File:/tmp/RackMultipart20150727-28490-11ruvzx>>, "question_ids"=>["", "1", "2"]}, "commit"=>"Update Questionnaire", "id"=>"1"}
68166
+ AdminUser Load (4.7ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
68167
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
68168
+ Command :: file -b --mime '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-9tki2o.png'
68169
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-17ar2e9.png[0]' 2>/dev/null
68170
+ Command :: identify -format %m '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-17ar2e9.png[0]'
68171
+ Command :: convert '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-17ar2e9.png[0]' -auto-orient -resize "150x125>" '/tmp/21771bcb9b1fba4dcf6282abf57c9e0720150727-28490-djtwui'
68172
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-17ar2e9.png[0]' 2>/dev/null
68173
+ Command :: identify -format %m '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-17ar2e9.png[0]'
68174
+ Command :: convert '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-17ar2e9.png[0]' -auto-orient -resize "50x50>" '/tmp/21771bcb9b1fba4dcf6282abf57c9e0720150727-28490-1y4h475'
68175
+ Qwester::Question Load (6.8ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" IN (1, 2)
68176
+ Qwester::Question Load (7.3ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 ORDER BY position
68177
+  (4.6ms) begin transaction
68178
+  (0.2ms) commit transaction
68179
+  (0.1ms) begin transaction
68180
+ Command :: file -b --mime '/tmp/48d6215903dff56238e52e8891380c8f20150727-28490-16teymi.png'
68181
+  (7.8ms) UPDATE "qwester_questionnaires" SET "button_image_updated_at" = '2015-07-27 15:12:13.171098', "button_image_file_name" = 'blue.png', "updated_at" = '2015-07-27 15:12:14.949848' WHERE "qwester_questionnaires"."id" = 1
68182
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/001/original/blue.png
68183
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/001/link/blue.png
68184
+ [paperclip] deleting /home/rob/web/qwester/test/dummy/public/system/qwester/questionnaires/button_images/000/000/001/thumbnail/blue.png
68185
+  (163.7ms) commit transaction
68186
+ Redirected to http://localhost:3000/admin/qwester_questionnaires/1
68187
+ Completed 302 Found in 2339ms (ActiveRecord: 0.0ms)
68188
+
68189
+
68190
+ Started GET "/admin/qwester_questionnaires/1" for 127.0.0.1 at 2015-07-27 16:12:15 +0100
68191
+ Processing by Admin::QwesterQuestionnairesController#show as HTML
68192
+ Parameters: {"id"=>"1"}
68193
+ AdminUser Load (0.4ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
68194
+ Qwester::Questionnaire Load (3.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
68195
+ Qwester::Question Load (0.5ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 ORDER BY position
68196
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
68197
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
68198
+ Qwester::QuestionnairesQuestion Load (0.4ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND (qwester_questionnaires_questions.position IS NOT NULL) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
68199
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 2 ORDER BY position LIMIT 1
68200
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 2 ORDER BY position LIMIT 1
68201
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND (qwester_questionnaires_questions.position IS NOT NULL) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
68202
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p547@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (140.1ms)
68203
+ Completed 200 OK in 172ms (Views: 149.6ms | ActiveRecord: 5.2ms)
68204
+
68205
+
68206
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:12:16 +0100
68207
+ Served asset /active_admin.css - 304 Not Modified (25ms)
68208
+
68209
+
68210
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-07-27 16:12:16 +0100
68211
+ Served asset /application.js - 304 Not Modified (6ms)
68212
+
68213
+
68214
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2015-07-27 16:12:16 +0100
68215
+ Served asset /active_admin.js - 304 Not Modified (6ms)
68216
+
68217
+
68218
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2015-07-27 16:12:16 +0100
68219
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
68220
+
68221
+
68222
+ Started GET "/" for 127.0.0.1 at 2015-07-27 16:12:21 +0100
68223
+ Processing by Qwester::QuestionnairesController#index as HTML
68224
+ Qwester::Presentation Load (0.3ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
68225
+ Qwester::Questionnaire Load (0.4ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
68226
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (10.0ms)
68227
+ Completed 200 OK in 88ms (Views: 85.7ms | ActiveRecord: 0.6ms)
68228
+
68229
+
68230
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:12:22 +0100
68231
+ Served asset /active_admin.css - 304 Not Modified (20ms)
68232
+
68233
+
68234
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2015-07-27 16:12:22 +0100
68235
+ Served asset /active_admin/application.js - 304 Not Modified (1ms)
68236
+
68237
+
68238
+ Started GET "/questionnaires/questionnaires/1" for 127.0.0.1 at 2015-07-27 16:12:24 +0100
68239
+ Processing by Qwester::QuestionnairesController#show as HTML
68240
+ Parameters: {"id"=>"1"}
68241
+ Qwester::Questionnaire Load (9.9ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
68242
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/_errors.html.erb (6.6ms)
68243
+ Qwester::Question Load (0.4ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 ORDER BY position
68244
+ Qwester::Answer Load (0.8ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 1 ORDER BY position
68245
+ Qwester::Answer Load (1.0ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 2 ORDER BY position
68246
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/show.html.erb within layouts/application (98.1ms)
68247
+ Completed 200 OK in 228ms (Views: 213.3ms | ActiveRecord: 12.2ms)
68248
+
68249
+
68250
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:12:25 +0100
68251
+ Served asset /active_admin.css - 304 Not Modified (21ms)
68252
+
68253
+
68254
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2015-07-27 16:12:25 +0100
68255
+ Served asset /active_admin/application.js - 304 Not Modified (6ms)
68256
+
68257
+
68258
+ Started GET "/questionnaires/questionnaires" for 127.0.0.1 at 2015-07-27 16:12:33 +0100
68259
+ Processing by Qwester::QuestionnairesController#index as HTML
68260
+ Qwester::Presentation Load (0.4ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
68261
+ Qwester::Questionnaire Load (0.4ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
68262
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (10.1ms)
68263
+ Completed 200 OK in 224ms (Views: 214.7ms | ActiveRecord: 0.7ms)
68264
+
68265
+
68266
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2015-07-27 16:12:34 +0100
68267
+ Served asset /active_admin.css - 304 Not Modified (16ms)
68268
+
68269
+
68270
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2015-07-27 16:12:34 +0100
68271
+ Served asset /active_admin/application.js - 304 Not Modified (5ms)
68272
+ Connecting to database specified by database.yml
68273
+  (5.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
68274
+  (0.4ms) select sqlite_version(*)
68275
+  (107.8ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
68276
+  (98.0ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
68277
+  (99.1ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
68278
+  (152.0ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
68279
+  (106.1ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
68280
+  (143.8ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
68281
+  (119.1ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
68282
+  (98.9ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
68283
+  (107.8ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
68284
+  (106.3ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
68285
+  (106.9ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
68286
+  (132.0ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
68287
+  (158.1ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
68288
+  (200.8ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
68289
+  (131.8ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
68290
+  (114.8ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
68291
+  (147.7ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime, "must_complete" boolean) 
68292
+  (139.6ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
68293
+  (190.6ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
68294
+  (173.2ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
68295
+  (215.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
68296
+  (210.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
68297
+  (0.5ms) SELECT version FROM "schema_migrations"
68298
+  (191.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131119142050')
68299
+  (214.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
68300
+  (172.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
68301
+  (167.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
68302
+  (135.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
68303
+  (138.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
68304
+  (141.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
68305
+  (142.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
68306
+  (207.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
68307
+  (267.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
68308
+  (175.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
68309
+  (138.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
68310
+  (194.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
68311
+  (255.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
68312
+  (141.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
68313
+  (133.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
68314
+  (258.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
68315
+  (315.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
68316
+  (158.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
68317
+  (124.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
68318
+  (200.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
68319
+  (190.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
68320
+  (158.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
68321
+  (291.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
68322
+  (224.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
68323
+  (184.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')