qwester 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -1,3 +1,4 @@
1
+ {<img src="https://codeclimate.com/github/reggieb/qwester.png" />}[https://codeclimate.com/github/reggieb/qwester]
1
2
  = Qwester
2
3
 
3
4
  A rails engine used to add questionnaires to rails applications
@@ -214,6 +215,10 @@ The default value of weighting is zero.
214
215
  A test app is present within this engine, and provides an example of how
215
216
  Qwester can be used within a Rails app. See test/dummy.
216
217
 
218
+ However, look at the notes in Gemfile. You may need to uncomment two gem
219
+ declarations in the gemfile, before jquery and active_admin work correctly in
220
+ the test/dummy environment.
221
+
217
222
  == Integration with ActiveAdmin
218
223
 
219
224
  Qwester contains a set of ActiveAdmin register files, that allow Qwester
@@ -1,9 +1,13 @@
1
1
  module Qwester
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
4
4
 
5
5
  # History
6
6
  # =======
7
+ #
8
+ # 0.2.2 - Removes require statements not needed in production
9
+ # Some gems needed to be required to run the dummy app, but these may have
10
+ # caused some javascript and/or asset pipeline errors in production apps.
7
11
  #
8
12
  # 0.2.1 - Allows questionnaires to be positioned within a presentation
9
13
  #
@@ -1,5 +1,12 @@
1
1
  # Load the rails application
2
2
  require File.expand_path('../application', __FILE__)
3
3
 
4
+ # Load elements needed for active admin to work in dummy
5
+
6
+ require 'action_controller'
7
+ require 'active_support/log_subscriber'
8
+ require 'inherited_resources'
9
+ require 'devise'
10
+
4
11
  # Initialize the rails application
5
12
  Dummy::Application.initialize!
@@ -1,4 +1,4 @@
1
-
1
+ require 'active_admin'
2
2
  ActiveAdmin.setup do |config|
3
3
 
4
4
  # == Site Title
@@ -2,6 +2,7 @@ Rails.application.routes.draw do
2
2
 
3
3
  root :to => 'qwester/questionnaires#index'
4
4
 
5
+ require 'inherited_resources'
5
6
  if defined?(ActiveAdmin)
6
7
  ActiveAdmin.routes(self)
7
8
  devise_for :admin_users, ActiveAdmin::Devise.config
Binary file
Binary file
@@ -56083,3 +56083,490 @@ Connecting to database specified by database.yml
56083
56083
   (140.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
56084
56084
   (142.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
56085
56085
   (132.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
56086
+ Connecting to database specified by database.yml
56087
+ Connecting to database specified by database.yml
56088
+ Connecting to database specified by database.yml
56089
+ Connecting to database specified by database.yml
56090
+
56091
+
56092
+ Started GET "/" for 127.0.0.1 at 2013-06-17 12:43:17 +0100
56093
+ Processing by Qwester::QuestionnairesController#index as HTML
56094
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
56095
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires"
56096
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (15.4ms)
56097
+ Completed 500 Internal Server Error in 636ms
56098
+
56099
+ ActionView::Template::Error (couldn't find file 'jquery'
56100
+ (in /home/rob/web/qwester/test/dummy/app/assets/javascripts/application.js:13)):
56101
+ 3: <head>
56102
+ 4: <title>Dummy</title>
56103
+ 5: <%= stylesheet_link_tag "application", :media => "all" %>
56104
+ 6: <%= javascript_include_tag "application" %>
56105
+ 7: <%= csrf_meta_tags %>
56106
+ 8: </head>
56107
+ 9: <body>
56108
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__131763640__615022918'
56109
+
56110
+
56111
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
56112
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
56113
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (20.6ms)
56114
+
56115
+
56116
+ Started GET "/" for 127.0.0.1 at 2013-06-17 12:44:30 +0100
56117
+ Processing by Qwester::QuestionnairesController#index as HTML
56118
+ Qwester::Presentation Load (0.4ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
56119
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires"
56120
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (3.7ms)
56121
+ Completed 500 Internal Server Error in 171ms
56122
+
56123
+ ActionView::Template::Error (couldn't find file 'jquery'
56124
+ (in /home/rob/web/qwester/test/dummy/app/assets/javascripts/application.js:13)):
56125
+ 3: <head>
56126
+ 4: <title>Dummy</title>
56127
+ 5: <%= stylesheet_link_tag "application", :media => "all" %>
56128
+ 6: <%= javascript_include_tag "application" %>
56129
+ 7: <%= csrf_meta_tags %>
56130
+ 8: </head>
56131
+ 9: <body>
56132
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__131763640__615022918'
56133
+
56134
+
56135
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
56136
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.8ms)
56137
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (17.2ms)
56138
+ Connecting to database specified by database.yml
56139
+
56140
+
56141
+ Started GET "/" for 127.0.0.1 at 2013-06-17 12:46:21 +0100
56142
+ Processing by Qwester::QuestionnairesController#index as HTML
56143
+ Qwester::Presentation Load (0.3ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
56144
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires"
56145
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (11.3ms)
56146
+ Completed 500 Internal Server Error in 405ms
56147
+
56148
+ ActionView::Template::Error (couldn't find file 'jquery'
56149
+ (in /home/rob/web/qwester/test/dummy/app/assets/javascripts/application.js:13)):
56150
+ 3: <head>
56151
+ 4: <title>Dummy</title>
56152
+ 5: <%= stylesheet_link_tag "application", :media => "all" %>
56153
+ 6: <%= javascript_include_tag "application" %>
56154
+ 7: <%= csrf_meta_tags %>
56155
+ 8: </head>
56156
+ 9: <body>
56157
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___960752231__615011328'
56158
+
56159
+
56160
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
56161
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
56162
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (23.2ms)
56163
+ Connecting to database specified by database.yml
56164
+
56165
+
56166
+ Started GET "/" for 127.0.0.1 at 2013-06-17 12:58:14 +0100
56167
+ Processing by Qwester::QuestionnairesController#index as HTML
56168
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
56169
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires"
56170
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (19.7ms)
56171
+ Completed 500 Internal Server Error in 505ms
56172
+
56173
+ ActionView::Template::Error (couldn't find file 'active_admin/application'
56174
+ (in /home/rob/web/qwester/test/dummy/app/assets/javascripts/active_admin.js:1)):
56175
+ 3: <head>
56176
+ 4: <title>Dummy</title>
56177
+ 5: <%= stylesheet_link_tag "application", :media => "all" %>
56178
+ 6: <%= javascript_include_tag "application" %>
56179
+ 7: <%= csrf_meta_tags %>
56180
+ 8: </head>
56181
+ 9: <body>
56182
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___1059283561_98950530'
56183
+
56184
+
56185
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.3ms)
56186
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
56187
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (14.4ms)
56188
+
56189
+
56190
+ Started GET "/" for 127.0.0.1 at 2013-06-17 12:58:34 +0100
56191
+ Processing by Qwester::QuestionnairesController#index as HTML
56192
+ Qwester::Presentation Load (0.5ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
56193
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires"
56194
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (15.2ms)
56195
+ Completed 500 Internal Server Error in 221ms
56196
+
56197
+ ActionView::Template::Error (couldn't find file 'active_admin/application'
56198
+ (in /home/rob/web/qwester/test/dummy/app/assets/javascripts/active_admin.js:1)):
56199
+ 3: <head>
56200
+ 4: <title>Dummy</title>
56201
+ 5: <%= stylesheet_link_tag "application", :media => "all" %>
56202
+ 6: <%= javascript_include_tag "application" %>
56203
+ 7: <%= csrf_meta_tags %>
56204
+ 8: </head>
56205
+ 9: <body>
56206
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___1059283561_98950530'
56207
+
56208
+
56209
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.8ms)
56210
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
56211
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (15.6ms)
56212
+ Connecting to database specified by database.yml
56213
+
56214
+
56215
+ Started GET "/" for 127.0.0.1 at 2013-06-17 12:58:53 +0100
56216
+ Processing by Qwester::QuestionnairesController#index as HTML
56217
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
56218
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires"
56219
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (64.8ms)
56220
+ Completed 200 OK in 525ms (Views: 433.1ms | ActiveRecord: 1.9ms)
56221
+
56222
+
56223
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56224
+ Served asset /active_admin.css - 200 OK (51ms)
56225
+
56226
+
56227
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56228
+ Served asset /application.css - 304 Not Modified (266ms)
56229
+
56230
+
56231
+ Started GET "/assets/questionnaires.css?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56232
+ Served asset /questionnaires.css - 200 OK (2ms)
56233
+
56234
+
56235
+ Started GET "/assets/active_admin/components/jquery.aa.checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56236
+ Served asset /active_admin/components/jquery.aa.checkbox-toggler.js - 200 OK (26ms)
56237
+
56238
+
56239
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56240
+ Served asset /active_admin/lib/namespace.js - 304 Not Modified (16ms)
56241
+
56242
+
56243
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56244
+ Served asset /jquery.js - 200 OK (31ms)
56245
+
56246
+
56247
+ Started GET "/assets/active_admin/components/jquery.aa.dropdown-menu.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56248
+ Served asset /active_admin/components/jquery.aa.dropdown-menu.js - 200 OK (9ms)
56249
+
56250
+
56251
+ Started GET "/assets/active_admin/components/jquery.aa.popover.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56252
+ Served asset /active_admin/components/jquery.aa.popover.js - 200 OK (16ms)
56253
+
56254
+
56255
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56256
+ Served asset /jquery_ujs.js - 200 OK (17ms)
56257
+
56258
+
56259
+ Started GET "/assets/active_admin/components/jquery.aa.table-checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56260
+ Served asset /active_admin/components/jquery.aa.table-checkbox-toggler.js - 200 OK (12ms)
56261
+
56262
+
56263
+ Started GET "/assets/active_admin/pages/application.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56264
+ Served asset /active_admin/pages/application.js - 200 OK (10ms)
56265
+
56266
+
56267
+ Started GET "/assets/active_admin/pages/batch_actions.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56268
+ Served asset /active_admin/pages/batch_actions.js - 200 OK (10ms)
56269
+
56270
+
56271
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:54 +0100
56272
+ Served asset /active_admin/application.js - 304 Not Modified (175ms)
56273
+
56274
+
56275
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:55 +0100
56276
+ Served asset /active_admin.js - 200 OK (46ms)
56277
+
56278
+
56279
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:55 +0100
56280
+ Served asset /application.js - 304 Not Modified (64ms)
56281
+
56282
+
56283
+ Started GET "/assets/questionnaires.js?body=1" for 127.0.0.1 at 2013-06-17 12:58:55 +0100
56284
+ Served asset /questionnaires.js - 200 OK (13ms)
56285
+
56286
+
56287
+ Started GET "/questionnires/questionnaires/1" for 127.0.0.1 at 2013-06-17 12:59:00 +0100
56288
+ Processing by Qwester::QuestionnairesController#show as HTML
56289
+ Parameters: {"id"=>"1"}
56290
+ Qwester::Questionnaire Load (0.5ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
56291
+ Qwester::Answer Load (0.5ms) SELECT DISTINCT "qwester_answers".* FROM "qwester_answers" INNER JOIN "qwester_questions" ON "qwester_answers"."question_id" = "qwester_questions"."id" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1
56292
+ 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" = 1 ORDER BY position
56293
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 1 ORDER BY position
56294
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 2 ORDER BY position
56295
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/show.html.erb within layouts/application (226.6ms)
56296
+ Completed 200 OK in 342ms (Views: 336.1ms | ActiveRecord: 2.4ms)
56297
+
56298
+
56299
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-06-17 12:59:00 +0100
56300
+ Served asset /application.css - 304 Not Modified (50ms)
56301
+
56302
+
56303
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2013-06-17 12:59:00 +0100
56304
+ Served asset /active_admin/lib/namespace.js - 304 Not Modified (16ms)
56305
+
56306
+
56307
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2013-06-17 12:59:00 +0100
56308
+ Served asset /active_admin/application.js - 304 Not Modified (25ms)
56309
+
56310
+
56311
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-06-17 12:59:00 +0100
56312
+ Served asset /application.js - 304 Not Modified (22ms)
56313
+ Connecting to database specified by database.yml
56314
+
56315
+
56316
+ Started GET "/questionnires/questionnaires/1" for 127.0.0.1 at 2013-06-17 13:03:17 +0100
56317
+ Processing by Qwester::QuestionnairesController#show as HTML
56318
+ Parameters: {"id"=>"1"}
56319
+ Qwester::Questionnaire Load (2.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
56320
+ Qwester::Answer Load (0.5ms) SELECT DISTINCT "qwester_answers".* FROM "qwester_answers" INNER JOIN "qwester_questions" ON "qwester_answers"."question_id" = "qwester_questions"."id" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1
56321
+ 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" = 1 ORDER BY position
56322
+ Qwester::Answer Load (0.3ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 1 ORDER BY position
56323
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 2 ORDER BY position
56324
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/show.html.erb within layouts/application (212.8ms)
56325
+ Completed 500 Internal Server Error in 511ms
56326
+
56327
+ ActionView::Template::Error (couldn't find file 'jquery'
56328
+ (in /home/rob/web/qwester/test/dummy/app/assets/javascripts/application.js:13)):
56329
+ 3: <head>
56330
+ 4: <title>Dummy</title>
56331
+ 5: <%= stylesheet_link_tag "application", :media => "all" %>
56332
+ 6: <%= javascript_include_tag "application" %>
56333
+ 7: <%= csrf_meta_tags %>
56334
+ 8: </head>
56335
+ 9: <body>
56336
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__351317616_84702940'
56337
+
56338
+
56339
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
56340
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (3.2ms)
56341
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (16.4ms)
56342
+ Connecting to database specified by database.yml
56343
+
56344
+
56345
+ Started GET "/questionnires/questionnaires/1" for 127.0.0.1 at 2013-06-17 13:04:21 +0100
56346
+ Processing by Qwester::QuestionnairesController#show as HTML
56347
+ Parameters: {"id"=>"1"}
56348
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
56349
+ Qwester::Answer Load (2.3ms) SELECT DISTINCT "qwester_answers".* FROM "qwester_answers" INNER JOIN "qwester_questions" ON "qwester_answers"."question_id" = "qwester_questions"."id" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1
56350
+ 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" = 1 ORDER BY position
56351
+ Qwester::Answer Load (0.3ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 1 ORDER BY position
56352
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 2 ORDER BY position
56353
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/show.html.erb within layouts/application (211.8ms)
56354
+ Completed 200 OK in 574ms (Views: 551.5ms | ActiveRecord: 4.8ms)
56355
+
56356
+
56357
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56358
+ Served asset /application.css - 304 Not Modified (81ms)
56359
+
56360
+
56361
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56362
+ Served asset /active_admin.css - 304 Not Modified (66ms)
56363
+
56364
+
56365
+ Started GET "/assets/questionnaires.css?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56366
+ Served asset /questionnaires.css - 304 Not Modified (22ms)
56367
+
56368
+
56369
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56370
+ Served asset /jquery.js - 304 Not Modified (12ms)
56371
+
56372
+
56373
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56374
+ Served asset /jquery_ujs.js - 304 Not Modified (21ms)
56375
+
56376
+
56377
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56378
+ Served asset /active_admin/lib/namespace.js - 304 Not Modified (13ms)
56379
+
56380
+
56381
+ Started GET "/assets/active_admin/components/jquery.aa.checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56382
+ Served asset /active_admin/components/jquery.aa.checkbox-toggler.js - 304 Not Modified (10ms)
56383
+
56384
+
56385
+ Started GET "/assets/active_admin/components/jquery.aa.dropdown-menu.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56386
+ Served asset /active_admin/components/jquery.aa.dropdown-menu.js - 304 Not Modified (21ms)
56387
+
56388
+
56389
+ Started GET "/assets/active_admin/components/jquery.aa.popover.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56390
+ Served asset /active_admin/components/jquery.aa.popover.js - 304 Not Modified (28ms)
56391
+
56392
+
56393
+ Started GET "/assets/active_admin/components/jquery.aa.table-checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56394
+ Served asset /active_admin/components/jquery.aa.table-checkbox-toggler.js - 304 Not Modified (11ms)
56395
+
56396
+
56397
+ Started GET "/assets/active_admin/pages/application.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56398
+ Served asset /active_admin/pages/application.js - 304 Not Modified (11ms)
56399
+
56400
+
56401
+ Started GET "/assets/active_admin/pages/batch_actions.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56402
+ Served asset /active_admin/pages/batch_actions.js - 304 Not Modified (18ms)
56403
+
56404
+
56405
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56406
+ Served asset /active_admin/application.js - 304 Not Modified (69ms)
56407
+
56408
+
56409
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56410
+ Served asset /active_admin.js - 304 Not Modified (51ms)
56411
+
56412
+
56413
+ Started GET "/assets/questionnaires.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56414
+ Served asset /questionnaires.js - 304 Not Modified (1ms)
56415
+
56416
+
56417
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-06-17 13:04:22 +0100
56418
+ Served asset /application.js - 304 Not Modified (92ms)
56419
+
56420
+
56421
+ Started GET "/admin" for 127.0.0.1 at 2013-06-17 13:07:30 +0100
56422
+ Processing by Admin::DashboardController#index as HTML
56423
+ Completed 401 Unauthorized in 5ms
56424
+
56425
+
56426
+ Started GET "/admin/login" for 127.0.0.1 at 2013-06-17 13:07:30 +0100
56427
+ Processing by ActiveAdmin::Devise::SessionsController#new as HTML
56428
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (2.0ms)
56429
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (458.9ms)
56430
+ Completed 200 OK in 709ms (Views: 678.5ms | ActiveRecord: 0.2ms)
56431
+
56432
+
56433
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-06-17 13:07:31 +0100
56434
+ Served asset /active_admin.css - 304 Not Modified (144ms)
56435
+
56436
+
56437
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:31 +0100
56438
+ Served asset /jquery.js - 304 Not Modified (9ms)
56439
+
56440
+
56441
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:31 +0100
56442
+ Served asset /jquery_ujs.js - 304 Not Modified (12ms)
56443
+
56444
+
56445
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:31 +0100
56446
+ Served asset /active_admin/lib/namespace.js - 304 Not Modified (26ms)
56447
+
56448
+
56449
+ Started GET "/assets/active_admin/components/jquery.aa.dropdown-menu.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:31 +0100
56450
+ Served asset /active_admin/components/jquery.aa.dropdown-menu.js - 304 Not Modified (4ms)
56451
+
56452
+
56453
+ Started GET "/assets/active_admin/components/jquery.aa.checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:31 +0100
56454
+ Served asset /active_admin/components/jquery.aa.checkbox-toggler.js - 304 Not Modified (2ms)
56455
+
56456
+
56457
+ Started GET "/assets/active_admin/components/jquery.aa.popover.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:31 +0100
56458
+ Served asset /active_admin/components/jquery.aa.popover.js - 304 Not Modified (0ms)
56459
+
56460
+
56461
+ Started GET "/assets/active_admin/components/jquery.aa.table-checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:31 +0100
56462
+ Served asset /active_admin/components/jquery.aa.table-checkbox-toggler.js - 304 Not Modified (0ms)
56463
+
56464
+
56465
+ Started GET "/assets/active_admin/pages/application.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:31 +0100
56466
+ Served asset /active_admin/pages/application.js - 304 Not Modified (2ms)
56467
+
56468
+
56469
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:32 +0100
56470
+ Served asset /active_admin/application.js - 304 Not Modified (8ms)
56471
+
56472
+
56473
+ Started GET "/assets/active_admin/pages/batch_actions.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:32 +0100
56474
+ Served asset /active_admin/pages/batch_actions.js - 304 Not Modified (8ms)
56475
+
56476
+
56477
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:32 +0100
56478
+ Served asset /active_admin.js - 304 Not Modified (21ms)
56479
+
56480
+
56481
+ Started GET "/assets/questionnaires.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:32 +0100
56482
+ Served asset /questionnaires.js - 304 Not Modified (0ms)
56483
+
56484
+
56485
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-06-17 13:07:32 +0100
56486
+ Served asset /application.js - 304 Not Modified (14ms)
56487
+
56488
+
56489
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-06-17 13:07:32 +0100
56490
+ Served asset /active_admin/print.css - 200 OK (11ms)
56491
+
56492
+
56493
+ Started POST "/admin/login" for 127.0.0.1 at 2013-06-17 13:07:36 +0100
56494
+ Processing by ActiveAdmin::Devise::SessionsController#create as HTML
56495
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"AGFScnSlfx7uGJHu3JF07+i7Xg/uWcSt4ylvIa5N168=", "admin_user"=>{"email"=>"admin@warwickshire.gov.uk", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Login"}
56496
+ AdminUser Load (0.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'admin@warwickshire.gov.uk' LIMIT 1
56497
+  (0.9ms) begin transaction
56498
+  (1.4ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-05-02 14:03:25.496117', "current_sign_in_at" = '2013-06-17 12:07:36.789301', "sign_in_count" = 9, "updated_at" = '2013-06-17 12:07:36.793999' WHERE "admin_users"."id" = 1
56499
+  (127.5ms) commit transaction
56500
+ Redirected to http://localhost:3000/admin
56501
+ Completed 302 Found in 814ms (ActiveRecord: 0.0ms)
56502
+
56503
+
56504
+ Started GET "/admin" for 127.0.0.1 at 2013-06-17 13:07:37 +0100
56505
+ Processing by Admin::DashboardController#index as HTML
56506
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
56507
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (153.9ms)
56508
+ Completed 200 OK in 188ms (Views: 184.5ms | ActiveRecord: 0.2ms)
56509
+
56510
+
56511
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-06-17 13:07:37 +0100
56512
+ Served asset /active_admin.css - 304 Not Modified (51ms)
56513
+
56514
+
56515
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-17 13:07:37 +0100
56516
+ Served asset /application.js - 200 OK (16ms)
56517
+
56518
+
56519
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-06-17 13:07:37 +0100
56520
+ Served asset /active_admin.js - 200 OK (2ms)
56521
+
56522
+
56523
+ Started GET "/assets/active_admin/nested_menu_arrow.gif" for 127.0.0.1 at 2013-06-17 13:07:37 +0100
56524
+ Served asset /active_admin/nested_menu_arrow.gif - 304 Not Modified (88ms)
56525
+
56526
+
56527
+ Started GET "/admin/admin_users" for 127.0.0.1 at 2013-06-17 13:07:39 +0100
56528
+ Processing by Admin::AdminUsersController#index as HTML
56529
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
56530
+  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "admin_users" LIMIT 30 OFFSET 0) subquery_for_count
56531
+  (0.2ms) SELECT COUNT(*) FROM "admin_users" 
56532
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "admin_users" LIMIT 30 OFFSET 0) subquery_for_count
56533
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" ORDER BY "admin_users"."id" desc LIMIT 30 OFFSET 0
56534
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (464.6ms)
56535
+ Completed 200 OK in 528ms (Views: 518.9ms | ActiveRecord: 1.0ms)
56536
+
56537
+
56538
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-06-17 13:07:40 +0100
56539
+ Served asset /active_admin.css - 304 Not Modified (190ms)
56540
+
56541
+
56542
+ Started GET "/assets/active_admin/orderable.png" for 127.0.0.1 at 2013-06-17 13:07:40 +0100
56543
+ Served asset /active_admin/orderable.png - 304 Not Modified (40ms)
56544
+
56545
+
56546
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2013-06-17 13:07:45 +0100
56547
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (29ms)
56548
+
56549
+
56550
+ Started GET "/admin/qwester_presentations" for 127.0.0.1 at 2013-06-17 13:07:47 +0100
56551
+ Processing by Admin::QwesterPresentationsController#index as HTML
56552
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
56553
+  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_presentations" LIMIT 30 OFFSET 0) subquery_for_count 
56554
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentations"
56555
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_presentations" LIMIT 30 OFFSET 0) subquery_for_count 
56556
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" ORDER BY "qwester_presentations"."id" desc LIMIT 30 OFFSET 0
56557
+ Qwester::Questionnaire Load (0.2ms) 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
56558
+ Qwester::Questionnaire Load (0.2ms) 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" = 1 ORDER BY position
56559
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (570.4ms)
56560
+ Completed 200 OK in 581ms (Views: 567.3ms | ActiveRecord: 7.5ms)
56561
+
56562
+
56563
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-06-17 13:07:47 +0100
56564
+ Served asset /active_admin.css - 304 Not Modified (146ms)
56565
+
56566
+
56567
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2013-06-17 13:07:47 +0100
56568
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (0ms)
56569
+
56570
+
56571
+ Started GET "/assets/active_admin/datepicker/datepicker-input-icon.png" for 127.0.0.1 at 2013-06-17 13:07:48 +0100
56572
+ Served asset /active_admin/datepicker/datepicker-input-icon.png - 304 Not Modified (38ms)