Processing by SurveyAdmin::QuestionsController#create as HTML Completed 500 Internal Server Error in 1ms Processing by SurveyAdmin::QuestionsController#create as HTML Completed 500 Internal Server Error in 0ms Processing by SurveyAdmin::QuestionsController#index as HTML Completed 500 Internal Server Error in 1ms Processing by SurveyAdmin::QuestionsController#new as HTML Completed 500 Internal Server Error in 1ms Processing by SurveyAdmin::QuestionsController#create as HTML Completed 500 Internal Server Error in 1ms Processing by SurveyAdmin::QuestionsController#create as HTML Completed 500 Internal Server Error in 0ms Processing by SurveyAdmin::QuestionsController#index as HTML Completed 500 Internal Server Error in 1ms Processing by SurveyAdmin::QuestionsController#new as HTML Completed 500 Internal Server Error in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (13.8ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (1.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/new.html.erb within layouts/application (21.7ms) Completed 200 OK in 57ms (Views: 56.5ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", nil], ["created_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-09 18:03:24.880489' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (0.8ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (0.8ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:03:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position desc Completed 200 OK in 52ms (Views: 3.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (0.8ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (13.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (1.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/new.html.erb within layouts/application (22.4ms) Completed 200 OK in 58ms (Views: 57.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", nil], ["created_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-09 18:04:32.933715' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:04:32 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (0.8ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (0.8ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Fri, 09 Dec 2011 18:04:33 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:04:33 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position desc Completed 200 OK in 53ms (Views: 3.3ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:04:33 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:04:33 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (0.8ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Fri, 09 Dec 2011 18:04:33 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Fri, 09 Dec 2011 18:04:33 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (38.7ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Completed 404 Not Found in 1ms Processing by SurveyAdmin::AnswersController#create as HTML Completed 404 Not Found in 0ms [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" LIMIT 1[0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" LIMIT 1 Processing by SurveyAdmin::AnswersController#index as HTML Completed 404 Not Found in 0ms Processing by SurveyAdmin::AnswersController#new as HTML Completed 404 Not Found in 0ms [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" LIMIT 1[0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" LIMIT 1 [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" LIMIT 1[0m Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (29.7ms) Completed 200 OK in 111ms (Views: 110.7ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-10 15:10:51.700926' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (40.6ms) Completed 200 OK in 45ms (Views: 43.9ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.2ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.3ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position desc Completed 200 OK in 29ms (Views: 3.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:10:51 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (37.8ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_new_html_erb__4017066385888944335_2490252340 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb:5: syntax error, unexpected ',', expecting tCOLON2 or '[' or '.' ....append= ( f.submit, 'Create' , :class => 'button' );@output... ... ^ Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_new_html_erb__4017066385888944335_2490252340(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/answers/new";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('
');@output_buffer.append= ( link_to "Back to List", survey_admin_question_answers_path(@answer.question), :class => 'button' );@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/projects/survey_says/app/controllers/survey_admin/answers_controller.rb:24:in `create' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__775235819936552937__process_action__3392647445048387348__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:370:in `post' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/answers_controller_test.rb:29:in `test_create_invalid' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/application (21.3ms) Completed 500 Internal Server Error in 124ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 11ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-10 15:20:23.957836' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_edit_html_erb__3434860327773223140_2499973440 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/edit.html.erb:5: syntax error, unexpected ',', expecting tCOLON2 or '[' or '.' ....append= ( f.submit, 'Update' , :class => 'button' );@output... ... ^ Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_edit_html_erb__3434860327773223140_2499973440(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/answers/edit";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('');@output_buffer.append= ( link_to "Show", [:survey_admin, @answer.question, @answer], :class => 'button' );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to "View All", survey_admin_question_answers_path(@answer.question), :class => 'button' );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__775235819936552937__process_action__4465507361605987512__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/answers_controller_test.rb:44:in `test_edit' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Completed 500 Internal Server Error in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc Completed 500 Internal Server Error in 27ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_new_html_erb__4017066385888944335_2490252340 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb:5: syntax error, unexpected ',', expecting tCOLON2 or '[' or '.' ....append= ( f.submit, 'Create' , :class => 'button' );@output... ... ^ Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_new_html_erb__4017066385888944335_2490252340(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/answers/new";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('');@output_buffer.append= ( link_to "Back to List", survey_admin_question_answers_path(@answer.question), :class => 'button' );@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__775235819936552937__process_action__1444701019851563491__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/answers_controller_test.rb:21:in `test_new' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Completed 500 Internal Server Error in 3ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] Completed 500 Internal Server Error in 37ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_edit_html_erb__3434860327773223140_2499973440 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/edit.html.erb:5: syntax error, unexpected ',', expecting tCOLON2 or '[' or '.' ....append= ( f.submit, 'Update' , :class => 'button' );@output... ... ^ Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_edit_html_erb__3434860327773223140_2499973440(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/answers/edit";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('');@output_buffer.append= ( link_to "Show", [:survey_admin, @answer.question, @answer], :class => 'button' );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to "View All", survey_admin_question_answers_path(@answer.question), :class => 'button' );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/projects/survey_says/app/controllers/survey_admin/answers_controller.rb:39:in `update' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__775235819936552937__process_action__2077807093705611464__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:375:in `put' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/answers_controller_test.rb:52:in `test_update_invalid' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Completed 500 Internal Server Error in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.0ms) Completed 200 OK in 19ms (Views: 18.7ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-10 15:20:24.156202' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.0ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.1ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position desc Completed 200 OK in 28ms (Views: 3.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:20:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (37.7ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_new_html_erb__343383059989391655_2493985140 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb:5: syntax error, unexpected ',', expecting tCOLON2 or '[' or '.' ....append= ( f.submit, 'Create' , :class => 'button' );@output... ... ^ Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_new_html_erb__343383059989391655_2493985140(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/answers/new";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('');@output_buffer.append= ( link_to "Back to List", survey_admin_question_answers_path(@answer.question), :class => 'button' );@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/projects/survey_says/app/controllers/survey_admin/answers_controller.rb:24:in `create' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__3530633222930943506__process_action__3943073979952192812__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:370:in `post' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/answers_controller_test.rb:29:in `test_create_invalid' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/application (20.1ms) Completed 500 Internal Server Error in 124ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-10 15:21:57.832014' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_edit_html_erb__4386495610567503961_2167630440 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/edit.html.erb:5: syntax error, unexpected ',', expecting tCOLON2 or '[' or '.' ....append= ( f.submit, 'Update' , :class => 'button' );@output... ... ^ Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_edit_html_erb__4386495610567503961_2167630440(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/answers/edit";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('');@output_buffer.append= ( link_to "Show", [:survey_admin, @answer.question, @answer], :class => 'button' );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to "View All", survey_admin_question_answers_path(@answer.question), :class => 'button' );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__3530633222930943506__process_action__2960969021601978786__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/answers_controller_test.rb:44:in `test_edit' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Completed 500 Internal Server Error in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Completed 500 Internal Server Error in 52ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_new_html_erb__343383059989391655_2493985140 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb:5: syntax error, unexpected ',', expecting tCOLON2 or '[' or '.' ....append= ( f.submit, 'Create' , :class => 'button' );@output... ... ^ Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_new_html_erb__343383059989391655_2493985140(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/answers/new";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('');@output_buffer.append= ( link_to "Back to List", survey_admin_question_answers_path(@answer.question), :class => 'button' );@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__3530633222930943506__process_action__4133820965484972694__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/answers_controller_test.rb:21:in `test_new' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Completed 500 Internal Server Error in 3ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 500 Internal Server Error in 14ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_edit_html_erb__4386495610567503961_2167630440 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/edit.html.erb:5: syntax error, unexpected ',', expecting tCOLON2 or '[' or '.' ....append= ( f.submit, 'Update' , :class => 'button' );@output... ... ^ Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_answers_edit_html_erb__4386495610567503961_2167630440(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/answers/edit";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('');@output_buffer.append= ( link_to "Show", [:survey_admin, @answer.question, @answer], :class => 'button' );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to "View All", survey_admin_question_answers_path(@answer.question), :class => 'button' );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/projects/survey_says/app/controllers/survey_admin/answers_controller.rb:39:in `update' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:416:in `_run__3530633222930943506__process_action__4406755824664286849__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:375:in `put' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/answers_controller_test.rb:52:in `test_update_invalid' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Completed 500 Internal Server Error in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.2ms) Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", nil], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-10 15:21:57.978061' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:58 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:58 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.7ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.2ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:58 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:58 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position desc[0m Completed 200 OK in 29ms (Views: 3.7ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:58 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:58 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.0ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:21:58 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:21:58 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (36.7ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/application (23.6ms) Completed 200 OK in 125ms (Views: 57.7ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-10 15:24:26.462817' WHERE "answers"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Completed 500 Internal Server Error in 59ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Completed 500 Internal Server Error in 16ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.5ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] Completed 500 Internal Server Error in 39ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Completed 500 Internal Server Error in 15ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.1ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", nil], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-10 15:24:26.661475' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.1ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.3ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position desc[0m Completed 200 OK in 53ms (Views: 3.4ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.6ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:24:26 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (36.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:14 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/application (24.0ms) Completed 200 OK in 125ms (Views: 57.9ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 11ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-10 15:25:15.151298' WHERE "answers"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.6ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Completed 500 Internal Server Error in 61ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.5ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] Completed 500 Internal Server Error in 14ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.7ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.8ms) Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", nil], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-10 15:25:15.335107' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 28ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position desc[0m Completed 200 OK in 27ms (Views: 3.6ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.7ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:25:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (36.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/application (23.4ms) Completed 200 OK in 125ms (Views: 57.4ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-10 15:29:23.036598' WHERE "answers"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.7ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Completed 500 Internal Server Error in 64ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.5ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Completed 500 Internal Server Error in 15ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.7ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.1ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-10 15:29:23.225099' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.0ms) Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position desc Completed 200 OK in 28ms (Views: 3.6ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.7ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:29:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (36.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.2ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/application (23.5ms) Completed 200 OK in 128ms (Views: 57.6ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-10 15:31:57.752535' WHERE "answers"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.7ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.5ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (1.5ms) Completed 200 OK in 33ms (Views: 31.6ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.0ms) Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-10 15:31:57.873831' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.2ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position desc Completed 200 OK in 28ms (Views: 3.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position desc[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 15:31:57 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (14.8ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.5ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (37.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (59.4ms) Completed 200 OK in 163ms (Views: 94.5ms | ActiveRecord: 1.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-10 22:00:30.891851' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.3ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (2.9ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.4ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.1ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", nil], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-10 22:00:30.998975' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.7ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.2ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 28ms (Views: 4.3ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00], ["name", nil], ["updated_at", Sat, 10 Dec 2011 22:00:31 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" LIMIT 1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" LIMIT 1[0m [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (15.1ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (36.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (58.9ms) Completed 200 OK in 164ms (Views: 94.7ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-11 00:18:46.360215' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.0ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.4ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.1ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", nil], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-11 00:18:46.467159' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.2ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 28ms (Views: 4.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_survey_properties_edit_html_erb__3194348817698064510_2174038660 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/edit.html.erb:3: syntax error, unexpected '(', expecting keyword_end ...survey_admin, survey_property](@survey_property) do |f| @out... ... ^ /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/edit.html.erb:13: syntax error, unexpected keyword_ensure, expecting $end Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_survey_properties_edit_html_erb__3194348817698064510_2174038660(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/survey_properties/edit";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('');@output_buffer.append= ( link_to "Show", [:survey_admin, @survey_property], :class => 'button' );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to "View Properties", survey_admin_survey_properties_path, :class => 'button' );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:425:in `_run__285245079403232250__process_action__4565708524918975503__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:365:in `get' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/survey_properties_controller_test.rb:35:in `test_edit' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Completed 500 Internal Server Error in 52ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m ERROR: compiling ___sers_davidhenner_projects_survey_says_app_views_survey_admin_survey_properties_edit_html_erb__3194348817698064510_2174038660 RAISED /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/edit.html.erb:3: syntax error, unexpected '(', expecting keyword_end ...survey_admin, survey_property](@survey_property) do |f| @out... ... ^ /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/edit.html.erb:13: syntax error, unexpected keyword_ensure, expecting $end Function body: def ___sers_davidhenner_projects_survey_says_app_views_survey_admin_survey_properties_edit_html_erb__3194348817698064510_2174038660(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "survey_admin/survey_properties/edit";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('');@output_buffer.append= ( link_to "Show", [:survey_admin, @survey_property], :class => 'button' );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to "View Properties", survey_admin_survey_properties_path, :class => 'button' );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('
');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `module_eval' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:309:in `compile' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:217:in `compile!' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:170:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render' /Users/davidhenner/projects/survey_says/app/controllers/survey_admin/survey_properties_controller.rb:36:in `update' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:425:in `_run__285245079403232250__process_action__2700622019802367796__callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:449:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:49:in `process' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/actionpack-3.1.3/lib/action_controller/test_case.rb:375:in `put' /Users/davidhenner/projects/survey_says/test/functional/survey_admin/survey_properties_controller_test.rb:42:in `test_update_invalid' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:435:in `_run_setup_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/davidhenner/.rvm/gems/ruby-1.9.2-p290@survey/gems/activesupport-3.1.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:656:in `block (2 levels) in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:650:in `block in run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `each' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:649:in `run_test_suites' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:609:in `run' /Users/davidhenner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun' Completed 500 Internal Server Error in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:18:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (13.7ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.2ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (39.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (61.5ms) Completed 200 OK in 169ms (Views: 98.2ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-11 00:20:53.655414' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (2.9ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.3ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.9ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", nil], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-11 00:20:53.758443' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.0ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.3ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 30ms (Views: 6.0ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.0ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 500 Internal Server Error in 65ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:20:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:20:54 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:20:54 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Completed 500 Internal Server Error in 41ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:20:54 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:20:54 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (14.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (36.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (58.1ms) Completed 200 OK in 162ms (Views: 92.9ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-11 00:23:18.070962' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.0ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.3ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.1ms) Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", nil], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-11 00:23:18.176663' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.1ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 28ms (Views: 4.1ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1 Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00], ["name", "John"], ["updated_at", Sun, 11 Dec 2011 00:23:18 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (14.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.2ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.4ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (37.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (59.0ms) Completed 200 OK in 165ms (Views: 95.0ms | ActiveRecord: 1.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 02:32:20.961746' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.4ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:20 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (2.9ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.3ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.5ms) Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 02:32:21.097714' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.2ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC Completed 200 OK in 30ms (Views: 4.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 38ms (Views: 34.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "survey_properties" WHERE "survey_properties"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:32:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (12.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (12.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (57.7ms) Completed 200 OK in 138ms (Views: 93.6ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.4ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 02:33:40.852057' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 4ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.0ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.5ms) Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.1ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", nil], ["position", nil], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 02:33:40.988455' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.0ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.1ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC Completed 200 OK in 28ms (Views: 4.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.7ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["details", "John"], ["position", 1], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 29ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "survey_properties" WHERE "survey_properties"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 02:33:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (12.9ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:49 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (12.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (56.2ms) Completed 200 OK in 134ms (Views: 89.5ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 03:23:50.137358' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.3ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.5ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.8ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 03:23:50.273288' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.3ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC Completed 200 OK in 29ms (Views: 4.3ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "survey_properties" WHERE "survey_properties"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:23:50 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (12.9ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:22 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.2ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (12.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (34.1ms) Completed 200 OK in 137ms (Views: 91.6ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 03:52:23.228292' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.1ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (2.9ms) Completed 200 OK in 34ms (Views: 32.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.3ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", nil]] SQLite3::ConstraintException: constraint failed: INSERT INTO "questionnaires" ("name") VALUES (?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Completed 500 Internal Server Error in 66ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#index as HTML Completed 500 Internal Server Error in 1ms Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Completed 500 Internal Server Error in 18ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.7ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 03:52:23.514236' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.7ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 28ms (Views: 4.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 34ms (Views: 32.9ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "survey_properties" WHERE "survey_properties"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:52:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (12.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (13.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (34.4ms) Completed 200 OK in 136ms (Views: 92.0ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:52:59 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 03:53:00.019630' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (2.9ms) Completed 200 OK in 35ms (Views: 33.5ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.3ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", nil]] SQLite3::ConstraintException: constraint failed: INSERT INTO "questionnaires" ("name") VALUES (?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Completed 500 Internal Server Error in 63ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#index as HTML Completed 500 Internal Server Error in 1ms Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Completed 500 Internal Server Error in 19ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 1ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (98.5ms) Completed 500 Internal Server Error in 104ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 03:53:00.400304' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (118.9ms) Completed 500 Internal Server Error in 122ms Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (95.3ms) Completed 500 Internal Server Error in 97ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 28ms (Views: 4.3ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (119.3ms) Completed 500 Internal Server Error in 122ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.9ms) Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "survey_properties" WHERE "survey_properties"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:53:00 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (12.8ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:03 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:03 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (12.5ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (33.8ms) Completed 200 OK in 139ms (Views: 92.4ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 03:55:04.251757' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.1ms) Completed 200 OK in 34ms (Views: 32.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.4ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", nil]] SQLite3::ConstraintException: constraint failed: INSERT INTO "questionnaires" ("name") VALUES (?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Completed 500 Internal Server Error in 66ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#index as HTML Completed 500 Internal Server Error in 1ms Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Completed 500 Internal Server Error in 19ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.8ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 03:55:04.540696' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.5ms) Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 28ms (Views: 4.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.1ms) Completed 200 OK in 35ms (Views: 33.8ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "survey_properties" WHERE "survey_properties"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:55:04 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (13.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (13.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (35.4ms) Completed 200 OK in 139ms (Views: 94.4ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 03:56:16.985702' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 4ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.1ms) Completed 200 OK in 34ms (Views: 32.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.3ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", nil]] SQLite3::ConstraintException: constraint failed: INSERT INTO "questionnaires" ("name") VALUES (?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 1ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#index as HTML Completed 500 Internal Server Error in 1ms Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (5.1ms) Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 03:56:17.179014' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 29ms (Views: 4.6ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.6ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "survey_properties" WHERE "survey_properties"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 03:56:17 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (13.1ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (13.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (34.7ms) Completed 200 OK in 138ms (Views: 93.7ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 04:03:02.607548' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.3ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.0ms) Completed 200 OK in 35ms (Views: 33.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.3ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "Johnny!"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Completed 500 Internal Server Error in 68ms Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (5.0ms) Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 04:03:02.868354' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.4ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.1ms) Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC Completed 200 OK in 27ms (Views: 4.2ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.5ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.9ms) Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms) [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:03 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (12.9ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.2ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (13.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (34.4ms) Completed 200 OK in 137ms (Views: 93.2ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 04:03:25.100122' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.5ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.0ms) Completed 200 OK in 34ms (Views: 32.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.4ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "Johnny!"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.8ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 04:03:25.296299' WHERE "questions"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC Completed 200 OK in 29ms (Views: 4.4ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.2ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 33ms (Views: 32.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:03:25 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (12.8ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (13.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (36.4ms) Completed 200 OK in 142ms (Views: 97.1ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 11ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 04:27:21.957053' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.3ms) Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.0ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.3ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "Johnny!"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.2ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1)[0m Completed 200 OK in 27ms (Views: 3.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (5.0ms) Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 31ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 04:27:22.208122' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.0ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.2ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m DELETE FROM "survey_properties" WHERE "survey_properties"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:27:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (13.1ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (13.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (35.2ms) Completed 200 OK in 140ms (Views: 94.7ms | ActiveRecord: 0.7ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 Redirected to http://test.host/survey_admin/questions/1/answers/2 Completed 302 Found in 10ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mUPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 04:46:02.051898' WHERE "answers"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 3ms [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.3ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.1ms) Completed 200 OK in 35ms (Views: 33.5ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1[0m Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 1 [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.5ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"1", "question_id"=>"1"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/1/answers/1 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (1.0ms) Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "Johnny!"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestion Load (0.2ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1)[0m Completed 200 OK in 29ms (Views: 3.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (29.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (33.3ms) Completed 200 OK in 40ms (Views: 39.1ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", nil], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mUPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 04:46:02.307248' WHERE "questions"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "questions" WHERE "questions"."id" = 1 LIMIT 1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" [0m Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.1ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"1"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "1"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (1) ORDER BY answers.position ASC[0m Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.4ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"1"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions/1/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.9ms) Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "survey_properties" WHERE "survey_properties"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Completed 200 OK in 33ms (Views: 32.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 04:46:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"1"} [1m[35mSurveyProperty Load (0.0ms)[0m SELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties/1 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 1], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 2], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (1, 2) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 1], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 2], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["user_id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 3], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 4], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 5], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"6"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "6"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 6 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (13.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (60.7ms) Completed 200 OK in 100ms (Views: 96.3ms | ActiveRecord: 0.7ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:15 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"6"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "6"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 6 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/6/answers/7 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"6", "question_id"=>"6"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "6"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:29:16.019972' WHERE "answers"."id" = 6 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 6 LIMIT 1 Redirected to http://test.host/survey_admin/questions/6/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 6]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"6", "question_id"=>"6"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "6"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 6 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 6 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.5ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"6"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "6"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 6 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 6 Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"6"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "6"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 6 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"6", "question_id"=>"6"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "6"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 6 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 6 Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"6", "question_id"=>"6"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "6"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 6 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 6[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.7ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"6", "question_id"=>"6"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "6"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 6 LIMIT 1 Redirected to http://test.host/survey_admin/questions/6/answers/6 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 28ms (Views: 3.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.8ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/6/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"6"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "6"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:29:16.242655' WHERE "questions"."id" = 6 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 6 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 6]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"6"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "6"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 6 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 37ms (Views: 36.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.7ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"6"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "6"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (6) ORDER BY answers.position ASC Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"6"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "6"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 6 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.4ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"6"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "6"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/6/answers Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/3 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"3"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 3 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"3"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "3"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"3"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "3"]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"3"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:16 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"3"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/3 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.0ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 6], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 7], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (6, 7) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 2[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 6], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["user_id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 7], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["user_id", 2]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 8], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 9], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 10], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 3 AND "scores"."answer_id" = 8) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 8], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["survey_property_id", 3], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 3 AND "scores"."answer_id" = 9) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 9], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["survey_property_id", 3], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 4 AND "scores"."answer_id" = 9) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 9], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["survey_property_id", 4], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 4 AND "scores"."answer_id" = 10) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 10], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["survey_property_id", 4], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 8], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["user_id", 3]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 9], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["user_id", 3]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 8], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["user_id", 4]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 9], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["user_id", 4]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 3 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (8,9)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 4 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (8,9)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"11"} [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "11"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 11 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (25.9ms) Completed 200 OK in 91ms (Views: 88.4ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"11"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "11"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 11 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/11/answers/12 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"11", "question_id"=>"11"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "11"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:29:55.955850' WHERE "answers"."id" = 11 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 11 LIMIT 1 Redirected to http://test.host/survey_admin/questions/11/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 11]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"11", "question_id"=>"11"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "11"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 11 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 11 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.5ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"11"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "11"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 11 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 11 Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:55 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"11"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "11"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 11 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.2ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"11", "question_id"=>"11"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "11"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 11 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 11 Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"11", "question_id"=>"11"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "11"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 11 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 11[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.5ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"11", "question_id"=>"11"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "11"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 11 LIMIT 1 Redirected to http://test.host/survey_admin/questions/11/answers/11 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 40ms (Views: 37.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 28ms (Views: 3.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.7ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/11/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"11"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "11"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:29:56.179615' WHERE "questions"."id" = 11 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 11 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 11]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"11"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "11"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 11 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.4ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 41ms (Views: 40.3ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"11"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "11"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (11) ORDER BY answers.position ASC Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"11"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "11"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 11 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.2ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"11"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "11"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/11/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/5 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"5"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "5"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 5]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 5 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"5"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "5"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"5"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "5"]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"5"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "5"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:29:56 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"5"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "5"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/5 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 11], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 12], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (11, 12) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 5[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 11], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["user_id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 12], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["user_id", 5]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 13], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 14], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 15], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 5 AND "scores"."answer_id" = 13) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 13], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["survey_property_id", 5], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 5 AND "scores"."answer_id" = 14) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 14], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["survey_property_id", 5], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 6 AND "scores"."answer_id" = 14) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 14], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["survey_property_id", 6], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 6 AND "scores"."answer_id" = 15) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 15], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["survey_property_id", 6], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 13], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["user_id", 6]] [1m[35mSQL (0.2ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 14], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["user_id", 6]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 13], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["user_id", 7]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 14], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["user_id", 7]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 6 [1m[36mScore Load (0.3ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (13,14)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 7 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (13,14)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"16"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "16"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 16 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (26.8ms) Completed 200 OK in 91ms (Views: 88.7ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"16"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "16"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 16 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/16/answers/17 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"16", "question_id"=>"16"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "16"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:30:28.931317' WHERE "answers"."id" = 16 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 16 LIMIT 1 Redirected to http://test.host/survey_admin/questions/16/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 16]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"16", "question_id"=>"16"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "16"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 16 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 16 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.6ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"16"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "16"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 16 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 16 Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"16"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "16"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 16 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.5ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.4ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"16", "question_id"=>"16"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "16"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 16 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 16 Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"16", "question_id"=>"16"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "16"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 16 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 16[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.6ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"16", "question_id"=>"16"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "16"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 16 LIMIT 1 Redirected to http://test.host/survey_admin/questions/16/answers/16 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 40ms (Views: 37.3ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 28ms (Views: 3.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.8ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/16/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"16"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "16"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:30:29.156164' WHERE "questions"."id" = 16 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 16 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 16]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"16"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "16"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 16 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.2ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 45ms (Views: 43.9ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"16"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "16"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (16) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"16"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "16"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 16 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"16"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "16"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/16/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/7 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"7"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "7"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 7]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 7 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"7"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "7"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"7"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "7"]] Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"7"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "7"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:30:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"7"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "7"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/7 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 16], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 17], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35mAnswer Load (0.3ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (16, 17) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 8[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 16], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["user_id", 8]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 17], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["user_id", 8]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 18], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 19], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 20], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 7 AND "scores"."answer_id" = 18) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 18], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["survey_property_id", 7], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 7 AND "scores"."answer_id" = 19) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 19], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["survey_property_id", 7], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 8 AND "scores"."answer_id" = 19) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 19], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["survey_property_id", 8], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 8 AND "scores"."answer_id" = 20) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 20], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["survey_property_id", 8], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 18], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["user_id", 9]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 19], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["user_id", 9]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 18], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["user_id", 10]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 19], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["user_id", 10]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 9 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (18,19)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 10 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (18,19)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"21"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "21"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 21 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (26.7ms) Completed 200 OK in 91ms (Views: 88.4ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"21"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "21"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 21 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/21/answers/22 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"21", "question_id"=>"21"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "21"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:32:28.933178' WHERE "answers"."id" = 21 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 21 LIMIT 1 Redirected to http://test.host/survey_admin/questions/21/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 21]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"21", "question_id"=>"21"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "21"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 21 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 21 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.5ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.6ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"21"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "21"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 21 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 21 Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"21"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "21"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 21 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.5ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.5ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"21", "question_id"=>"21"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "21"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 21 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 21 Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:28 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"21", "question_id"=>"21"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "21"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 21 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 21[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.5ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.7ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"21", "question_id"=>"21"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "21"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 21 LIMIT 1 Redirected to http://test.host/survey_admin/questions/21/answers/21 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 39ms (Views: 36.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 27ms (Views: 3.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.9ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/21/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"21"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "21"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:32:29.154738' WHERE "questions"."id" = 21 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 21 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 21]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"21"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "21"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 21 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.4ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 49ms (Views: 48.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"21"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "21"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (21) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"21"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "21"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 21 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"21"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "21"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/21/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.9ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/9 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"9"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "9"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 9]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 9 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"9"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "9"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 45ms (Views: 44.6ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"9"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "9"]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"9"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "9"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:32:29 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"9"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "9"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/9 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 21], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 22], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (21, 22) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 11[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 21], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["user_id", 11]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 22], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["user_id", 11]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 23], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 24], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 25], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 9 AND "scores"."answer_id" = 23) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 23], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["survey_property_id", 9], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 9 AND "scores"."answer_id" = 24) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 24], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["survey_property_id", 9], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 10 AND "scores"."answer_id" = 24) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 24], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["survey_property_id", 10], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 10 AND "scores"."answer_id" = 25) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 25], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["survey_property_id", 10], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 23], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["user_id", 12]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 24], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["user_id", 12]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 23], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["user_id", 13]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 24], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["user_id", 13]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 12 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (23,24)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 13 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (23,24)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"26"} [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "26"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 26 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (26.7ms) Completed 200 OK in 92ms (Views: 88.9ms | ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"26"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "26"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 26 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/26/answers/27 Completed 302 Found in 11ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"26", "question_id"=>"26"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "26"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:33:21.855270' WHERE "answers"."id" = 26 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 26 LIMIT 1 Redirected to http://test.host/survey_admin/questions/26/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 26]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"26", "question_id"=>"26"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "26"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 26 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 26 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.7ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"26"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "26"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 26 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 26 Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"26"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "26"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 26 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.4ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"26", "question_id"=>"26"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "26"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 26 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 26 Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"26", "question_id"=>"26"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "26"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 26 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 26[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.1ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:33:21 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"26", "question_id"=>"26"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "26"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 26 LIMIT 1 Redirected to http://test.host/survey_admin/questions/26/answers/26 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 39ms (Views: 7.3ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 28ms (Views: 3.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 1ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.5ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/26/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"26"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "26"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:33:22.079016' WHERE "questions"."id" = 26 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 26 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 26]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"26"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "26"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 26 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 52ms (Views: 51.2ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.8ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"26"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "26"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (26) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"26"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "26"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 26 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"26"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "26"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/26/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/11 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"11"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "11"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 11]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 11 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"11"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "11"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 47ms (Views: 46.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"11"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "11"]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"11"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "11"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:33:22 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"11"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "11"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/11 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (12.8ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:29 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:29 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 26], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 27], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (26, 27) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 14[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 26], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["user_id", 14]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 27], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["user_id", 14]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 28], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 29], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 30], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 11 AND "scores"."answer_id" = 28) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 28], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["survey_property_id", 11], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 11 AND "scores"."answer_id" = 29) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 29], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["survey_property_id", 11], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 12 AND "scores"."answer_id" = 29) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 29], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["survey_property_id", 12], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 12 AND "scores"."answer_id" = 30) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 30], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["survey_property_id", 12], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 28], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["user_id", 15]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 29], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["user_id", 15]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 28], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["user_id", 16]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 29], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["user_id", 16]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 15 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (28,29)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 16 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (28,29)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"31"} [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "31"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 31 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (26.7ms) Completed 200 OK in 90ms (Views: 87.0ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"31"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "31"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 31 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/31/answers/32 Completed 302 Found in 11ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"31", "question_id"=>"31"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "31"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:34:30.362034' WHERE "answers"."id" = 31 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 31 LIMIT 1 Redirected to http://test.host/survey_admin/questions/31/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 31]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"31", "question_id"=>"31"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "31"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 31 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 31 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.1ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"31"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "31"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 31 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 31 Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"31"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "31"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 31 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.7ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"31", "question_id"=>"31"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "31"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 31 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 31 Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"31", "question_id"=>"31"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "31"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 31 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 31[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.9ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"31", "question_id"=>"31"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "31"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 31 LIMIT 1 Redirected to http://test.host/survey_admin/questions/31/answers/31 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 39ms (Views: 7.7ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 28ms (Views: 3.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (5.0ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/31/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"31"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "31"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:34:30.588120' WHERE "questions"."id" = 31 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 3ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 31 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 31]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"31"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "31"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 31 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.7ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 57ms (Views: 55.9ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.3ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.0ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"31"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "31"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (31) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"31"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "31"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 31 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"31"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "31"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/31/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/13 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"13"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "13"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 13]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 13 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"13"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "13"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 50ms (Views: 49.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"13"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "13"]] Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"13"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "13"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:34:30 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"13"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "13"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/13 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.1ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 31], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 32], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (31, 32) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 17[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 31], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["user_id", 17]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 32], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["user_id", 17]] [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 33], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 34], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 35], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 13 AND "scores"."answer_id" = 33) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 33], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["survey_property_id", 13], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 13 AND "scores"."answer_id" = 34) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 34], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["survey_property_id", 13], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 14 AND "scores"."answer_id" = 34) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 34], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["survey_property_id", 14], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 14 AND "scores"."answer_id" = 35) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 35], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["survey_property_id", 14], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 33], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["user_id", 18]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 34], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["user_id", 18]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 35], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["user_id", 19]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 34], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["user_id", 19]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 18 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (33,34)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 19 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value_sum, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (35,34)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"36"} [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "36"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 36 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (27.2ms) Completed 200 OK in 92ms (Views: 89.2ms | ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"36"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "36"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 36 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/36/answers/37 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:07 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"36", "question_id"=>"36"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "36"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:35:07.999523' WHERE "answers"."id" = 36 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 36 LIMIT 1 Redirected to http://test.host/survey_admin/questions/36/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 36]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"36", "question_id"=>"36"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "36"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 36 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 36 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.2ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"36"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "36"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 36 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 36 Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"36"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "36"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 36 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.8ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"36", "question_id"=>"36"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "36"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 36 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 36 Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"36", "question_id"=>"36"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "36"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 36 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 36[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.0ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"36", "question_id"=>"36"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "36"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 36 LIMIT 1 Redirected to http://test.host/survey_admin/questions/36/answers/36 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 39ms (Views: 7.6ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 28ms (Views: 3.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.9ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/36/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"36"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "36"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:35:08.222335' WHERE "questions"."id" = 36 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 36 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 36]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"36"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "36"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 36 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.2ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 61ms (Views: 59.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.0ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"36"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "36"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (36) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"36"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "36"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 36 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"36"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "36"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/36/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.9ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/15 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"15"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "15"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 15]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.1ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 15 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"15"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "15"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 36ms (Views: 35.3ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 21ms (Views: 19.9ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"15"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "15"]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"15"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "15"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:35:08 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"15"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "15"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/15 Completed 302 Found in 2ms [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 36], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 37], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (36, 37) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 20[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 36], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["user_id", 20]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 37], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["user_id", 20]] [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 38], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 39], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 40], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 15 AND "scores"."answer_id" = 38) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 38], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["survey_property_id", 15], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 15 AND "scores"."answer_id" = 39) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 39], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["survey_property_id", 15], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 16 AND "scores"."answer_id" = 39) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 39], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["survey_property_id", 16], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 16 AND "scores"."answer_id" = 40) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 40], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["survey_property_id", 16], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 38], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["user_id", 21]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 39], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["user_id", 21]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 40], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["user_id", 22]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 39], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["user_id", 22]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 21 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (38,39)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 22 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (40,39)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:23 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"41"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "41"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 41 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (6.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (27.7ms) Completed 200 OK in 91ms (Views: 88.3ms | ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"41"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "41"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 41 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/41/answers/42 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"41", "question_id"=>"41"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "41"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:36:24.135103' WHERE "answers"."id" = 41 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 41 LIMIT 1 Redirected to http://test.host/survey_admin/questions/41/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 41]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"41", "question_id"=>"41"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "41"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 41 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 41 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.3ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"41"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "41"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 41 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 41 Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"41"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "41"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 41 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.9ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"41", "question_id"=>"41"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "41"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 41 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 41 Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"41", "question_id"=>"41"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "41"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 41 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 41[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"41", "question_id"=>"41"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "41"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 41 LIMIT 1 Redirected to http://test.host/survey_admin/questions/41/answers/41 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 40ms (Views: 7.5ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 28ms (Views: 3.2ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 1ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.8ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/41/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"41"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "41"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:36:24.361507' WHERE "questions"."id" = 41 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 41 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 41]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"41"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "41"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 41 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.5ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 65ms (Views: 64.3ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.7ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"41"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "41"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (41) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"41"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "41"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 41 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"41"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "41"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/41/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 39ms (Views: 37.8ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/17 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"17"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "17"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 17]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 17 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"17"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "17"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"17"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "17"]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"17"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "17"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:24 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"17"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "17"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/17 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.0ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 41], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 42], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (41, 42) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 23[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 41], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["user_id", 23]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 42], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["user_id", 23]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 43], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 44], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 45], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 17 AND "scores"."answer_id" = 43) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 43], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["survey_property_id", 17], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 17 AND "scores"."answer_id" = 44) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 44], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["survey_property_id", 17], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 18 AND "scores"."answer_id" = 44) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 44], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["survey_property_id", 18], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 18 AND "scores"."answer_id" = 45) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 45], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["survey_property_id", 18], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["value", 25]] [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 43], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["user_id", 24]] [1m[35mSQL (0.2ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 44], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["user_id", 24]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 45], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["user_id", 25]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 44], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["user_id", 25]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 24 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (43,44)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 25 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (45,44)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:40 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"46"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "46"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 46 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.5ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (26.8ms) Completed 200 OK in 90ms (Views: 87.5ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"46"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "46"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 46 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/46/answers/47 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"46", "question_id"=>"46"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "46"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:36:41.093085' WHERE "answers"."id" = 46 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 46 LIMIT 1 Redirected to http://test.host/survey_admin/questions/46/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 46]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"46", "question_id"=>"46"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "46"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 46 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 46 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.2ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"46"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "46"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 46 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 46 Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"46"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "46"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 46 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (3.9ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"46", "question_id"=>"46"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "46"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 46 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 46 Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"46", "question_id"=>"46"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "46"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 46 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 46[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (1.9ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.1ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"46", "question_id"=>"46"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "46"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 46 LIMIT 1 Redirected to http://test.host/survey_admin/questions/46/answers/46 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 41ms (Views: 7.6ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 27ms (Views: 2.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.7ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 1ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.7ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/46/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"46"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "46"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:36:41.317453' WHERE "questions"."id" = 46 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 46 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 46]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"46"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "46"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 46 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.3ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 70ms (Views: 68.5ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.7ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"46"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "46"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (46) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"46"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "46"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 46 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.2ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"46"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "46"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/46/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.9ms) Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/19 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"19"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "19"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 19]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 19 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"19"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "19"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 26ms (Views: 25.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"19"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "19"]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"19"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "19"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:36:41 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"19"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "19"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/19 Completed 302 Found in 2ms [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.1ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:52 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:52 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 46], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 47], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (46, 47) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 26[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 46], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["user_id", 26]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 47], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["user_id", 26]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 48], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 49], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 50], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 19 AND "scores"."answer_id" = 48) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 48], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["survey_property_id", 19], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 19 AND "scores"."answer_id" = 49) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 49], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["survey_property_id", 19], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 20 AND "scores"."answer_id" = 49) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 49], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["survey_property_id", 20], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 20 AND "scores"."answer_id" = 50) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 50], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["survey_property_id", 20], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 48], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["user_id", 27]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 49], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["user_id", 27]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 50], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["user_id", 28]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 49], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["user_id", 28]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 27 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (48,49)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 28 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (50,49)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"51"} [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "51"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 51 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.9ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (27.1ms) Completed 200 OK in 92ms (Views: 89.0ms | ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"51"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "51"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 51 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/51/answers/52 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"51", "question_id"=>"51"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "51"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:38:53.321679' WHERE "answers"."id" = 51 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 51 LIMIT 1 Redirected to http://test.host/survey_admin/questions/51/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 51]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"51", "question_id"=>"51"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "51"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 51 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 51 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.3ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"51"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "51"]] [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 51 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 51 Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"51"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "51"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 51 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.0ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.2ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"51", "question_id"=>"51"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "51"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 51 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 51 Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"51", "question_id"=>"51"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "51"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 51 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 51[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.4ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"51", "question_id"=>"51"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "51"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 51 LIMIT 1 Redirected to http://test.host/survey_admin/questions/51/answers/51 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 38ms (Views: 7.5ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 27ms (Views: 3.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 1ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.7ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/51/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"51"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "51"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:38:53.543603' WHERE "questions"."id" = 51 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 51 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 51]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"51"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "51"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 51 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.3ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 71ms (Views: 69.9ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"51"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "51"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (51) ORDER BY answers.position ASC Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"51"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "51"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 51 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.5ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"51"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "51"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/51/answers Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.9ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/21 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"21"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "21"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 21]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 21 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"21"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "21"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 27ms (Views: 25.7ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"21"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "21"]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"21"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "21"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:38:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"21"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "21"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/21 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.9ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:45 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:45 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:45 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 51], ["updated_at", Mon, 12 Dec 2011 06:40:45 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:45 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:45 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:45 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 52], ["updated_at", Mon, 12 Dec 2011 06:40:45 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (51, 52) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 29[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 51], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["user_id", 29]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 52], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["user_id", 29]] [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 53], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 54], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 55], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 21 AND "scores"."answer_id" = 53) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 53], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["survey_property_id", 21], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 21 AND "scores"."answer_id" = 54) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 54], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["survey_property_id", 21], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 22 AND "scores"."answer_id" = 54) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 54], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["survey_property_id", 22], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 22 AND "scores"."answer_id" = 55) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 55], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["survey_property_id", 22], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 53], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["user_id", 30]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 54], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["user_id", 30]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 55], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["user_id", 31]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 54], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["user_id", 31]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 30 [1m[36mScore Load (0.3ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (53,54)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 31 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (55,54)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"56"} [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "56"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 56 LIMIT 1[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (6.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (28.5ms) Completed 200 OK in 92ms (Views: 89.5ms | ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"56"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "56"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 56 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/56/answers/57 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"56", "question_id"=>"56"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "56"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:40:46.256482' WHERE "answers"."id" = 56 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 56 LIMIT 1 Redirected to http://test.host/survey_admin/questions/56/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 56]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"56", "question_id"=>"56"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "56"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 56 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 56 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.3ms) Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"56"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "56"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 56 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 56 Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"56"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "56"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 56 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"56", "question_id"=>"56"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "56"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 56 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 56 Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"56", "question_id"=>"56"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "56"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 56 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 56[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.0ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"56", "question_id"=>"56"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "56"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 56 LIMIT 1 Redirected to http://test.host/survey_admin/questions/56/answers/56 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 39ms (Views: 7.8ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 27ms (Views: 2.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (5.0ms) Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/56/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"56"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "56"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:40:46.482045' WHERE "questions"."id" = 56 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 56 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 56]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"56"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "56"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 56 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.3ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 76ms (Views: 74.6ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.1ms) Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"56"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "56"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (56) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"56"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "56"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 56 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.4ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"56"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "56"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/56/answers Completed 302 Found in 1ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.9ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/23 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"23"} [1m[36mSurveyProperty Load (0.2ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "23"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 23]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 23 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"23"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "23"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 29ms (Views: 28.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"23"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "23"]] Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"23"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "23"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:40:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"23"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "23"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/23 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.2ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 56], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 57], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (56, 57) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 32[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 56], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["user_id", 32]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 57], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["user_id", 32]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 58], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 59], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 60], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 23 AND "scores"."answer_id" = 58) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 58], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["survey_property_id", 23], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 23 AND "scores"."answer_id" = 59) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 59], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["survey_property_id", 23], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 24 AND "scores"."answer_id" = 59) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 59], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["survey_property_id", 24], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 24 AND "scores"."answer_id" = 60) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 60], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["survey_property_id", 24], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 58], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["user_id", 33]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 59], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["user_id", 33]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 60], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["user_id", 34]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 59], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["user_id", 34]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 33 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (58,59)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 34 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (60,59)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"61"} [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "61"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 61 LIMIT 1[0m [1m[35mSurveyProperty Load (0.2ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (3.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (6.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (27.3ms) Completed 200 OK in 92ms (Views: 88.7ms | ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"61"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "61"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 61 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/61/answers/62 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"61", "question_id"=>"61"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "61"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:41:35.489210' WHERE "answers"."id" = 61 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 61 LIMIT 1 Redirected to http://test.host/survey_admin/questions/61/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 61]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"61", "question_id"=>"61"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "61"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 61 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 61 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.2ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"61"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "61"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 61 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 61 Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"61"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "61"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 61 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.0ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"61", "question_id"=>"61"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "61"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 61 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 61 Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"61", "question_id"=>"61"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "61"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 61 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 61[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.6ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"61", "question_id"=>"61"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "61"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 61 LIMIT 1 Redirected to http://test.host/survey_admin/questions/61/answers/61 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 40ms (Views: 7.4ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 27ms (Views: 3.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.8ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/61/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"61"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "61"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:41:35.713318' WHERE "questions"."id" = 61 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 61 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 61]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"61"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "61"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 61 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.7ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.3ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 110ms (Views: 108.9ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.7ms) Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"61"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "61"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (61) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"61"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "61"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 61 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.4ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"61"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "61"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/61/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/25 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"25"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "25"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 25]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 25 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"25"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "25"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 62ms (Views: 61.4ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"25"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "25"]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:41:35 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"25"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "25"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:41:36 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:41:36 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"25"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "25"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/25 Completed 302 Found in 2ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (12.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 61], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 62], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (61, 62) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 35[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 61], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["user_id", 35]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 62], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["user_id", 35]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 63], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 64], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 65], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 25 AND "scores"."answer_id" = 63) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 63], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["survey_property_id", 25], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 25 AND "scores"."answer_id" = 64) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 64], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["survey_property_id", 25], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 26 AND "scores"."answer_id" = 64) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 64], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["survey_property_id", 26], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 26 AND "scores"."answer_id" = 65) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 65], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["survey_property_id", 26], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 63], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["user_id", 36]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 64], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["user_id", 36]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 65], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["user_id", 37]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 64], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["user_id", 37]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 36 [1m[36mScore Load (0.3ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (63,64)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 37 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (65,64)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"66"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "66"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 66 LIMIT 1[0m [1m[35mSurveyProperty Load (0.2ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (3.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (6.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (27.7ms) Completed 200 OK in 90ms (Views: 87.7ms | ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"66"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "66"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 66 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/66/answers/67 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"66", "question_id"=>"66"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "66"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:44:37.921337' WHERE "answers"."id" = 66 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 66 LIMIT 1 Redirected to http://test.host/survey_admin/questions/66/answers Completed 302 Found in 3ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 66]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"66", "question_id"=>"66"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "66"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 66 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 66 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.3ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.4ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"66"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "66"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 66 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 66 Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"66"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "66"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 66 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.2ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"66", "question_id"=>"66"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "66"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 66 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 66 Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:37 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"66", "question_id"=>"66"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "66"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 66 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 66[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.8ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"66", "question_id"=>"66"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "66"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 66 LIMIT 1 Redirected to http://test.host/survey_admin/questions/66/answers/66 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 41ms (Views: 7.5ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.5ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 28ms (Views: 3.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.6ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/66/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"66"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "66"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:44:38.148518' WHERE "questions"."id" = 66 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 66 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 66]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"66"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "66"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 66 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.5ms) Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.3ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 114ms (Views: 112.3ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"66"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "66"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (66) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"66"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "66"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 66 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.8ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.4ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"66"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "66"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/66/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.9ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/27 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"27"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "27"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 27]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 27 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"27"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "27"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 64ms (Views: 62.7ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"27"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "27"]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"27"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "27"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:44:38 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"27"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "27"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/27 Completed 302 Found in 2ms [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (14.1ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 66], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 67], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (66, 67) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 38[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 66], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["user_id", 38]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 67], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["user_id", 38]] [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 68], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 69], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 70], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 27 AND "scores"."answer_id" = 68) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 68], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["survey_property_id", 27], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 27 AND "scores"."answer_id" = 69) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 69], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["survey_property_id", 27], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 28 AND "scores"."answer_id" = 69) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 69], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["survey_property_id", 28], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 28 AND "scores"."answer_id" = 70) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 70], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["survey_property_id", 28], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 68], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["user_id", 39]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 69], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["user_id", 39]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 70], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["user_id", 40]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 69], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["user_id", 40]] [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 39 [1m[36mScore Load (0.3ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (68,69)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 40 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (70,69)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"71"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "71"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 71 LIMIT 1[0m [1m[35mSurveyProperty Load (0.2ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (3.2ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (6.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (28.3ms) Completed 200 OK in 67ms (Views: 64.2ms | ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"71"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "71"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 71 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/71/answers/72 Completed 302 Found in 10ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"71", "question_id"=>"71"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "71"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 06:50:01.824974' WHERE "answers"."id" = 71 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 71 LIMIT 1 Redirected to http://test.host/survey_admin/questions/71/answers Completed 302 Found in 4ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 71]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"71", "question_id"=>"71"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "71"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 71 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 71 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.4ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.7ms) Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"71"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "71"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 71 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 71 Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"71"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "71"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 71 LIMIT 1 [1m[36mSurveyProperty Load (0.2ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.8ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"71", "question_id"=>"71"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "71"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 71 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 71 Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"71", "question_id"=>"71"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "71"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 71 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 71[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.3ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.6ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 06:50:01 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"71", "question_id"=>"71"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "71"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 71 LIMIT 1 Redirected to http://test.host/survey_admin/questions/71/answers/71 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"1"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "1"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) Completed 200 OK in 28ms (Views: 3.1ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"1"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/1 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.1ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.8ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/71/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"71"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "71"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 06:50:02.078182' WHERE "questions"."id" = 71 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 71 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 71]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"71"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "71"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 71 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.4ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.3ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 91ms (Views: 89.2ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"71"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "71"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (71) ORDER BY answers.position ASC Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"71"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "71"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 71 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"71"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "71"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/71/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/29 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"29"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "29"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 29]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 29 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"29"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "29"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 36ms (Views: 35.2ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"29"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "29"]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"29"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "29"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 06:50:02 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"29"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "29"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/29 Completed 302 Found in 31ms [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (13.1ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 71], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 72], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" IN (71, 72) [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 41[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 71], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 41]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 72], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 41]] [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35mSQL (0.2ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", 1], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 73], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 73], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 74], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 29 AND "scores"."answer_id" = 73) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 73], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["survey_property_id", 29], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 29 AND "scores"."answer_id" = 74) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 74], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["survey_property_id", 29], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 30 AND "scores"."answer_id" = 74) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 74], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["survey_property_id", 30], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 30 AND "scores"."answer_id" = 75) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 75], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["survey_property_id", 30], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 73], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 42]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 74], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 42]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 75], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 43]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 74], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 43]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", 1]] [1m[36mQuestion Load (0.2ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1)[0m [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (73) ORDER BY answers.position ASC [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".id FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 42[0m [1m[35mScore Load (0.2ms)[0m SELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (73,74)) GROUP BY survey_property_id [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (1) [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (73) ORDER BY answers.position ASC[0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".id FROM "answers" INNER JOIN "user_answers" ON "answers"."id" = "user_answers"."answer_id" WHERE "user_answers"."user_id" = 43 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (74)) GROUP BY survey_property_id[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["name", "friendly"], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["name", "pretty"], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 75], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 76], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 77], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 31 AND "scores"."answer_id" = 76) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 76], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["survey_property_id", 31], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["value", 5]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 31 AND "scores"."answer_id" = 77) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 77], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["survey_property_id", 31], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["value", 2]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 32 AND "scores"."answer_id" = 77) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 77], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["survey_property_id", 32], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["value", 1]] [1m[35m (0.1ms)[0m SELECT 1 FROM "scores" WHERE ("scores"."survey_property_id" = 32 AND "scores"."answer_id" = 78) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "scores" ("answer_id", "created_at", "survey_property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?)[0m [["answer_id", 78], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["survey_property_id", 32], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["value", 25]] [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name") VALUES (?) [["name", "Dave"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 76], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 44]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 77], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 44]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name") VALUES (?)[0m [["name", "Dave"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["answer_id", 78], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 45]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "user_answers" ("answer_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?)[0m [["answer_id", 77], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["user_id", 45]] [1m[35mUserAnswer Load (0.2ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 44 [1m[36mScore Load (0.3ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (76,77)) GROUP BY survey_property_id[0m [1m[35mUserAnswer Load (0.1ms)[0m SELECT "user_answers".* FROM "user_answers" WHERE "user_answers"."user_id" = 45 [1m[36mScore Load (0.2ms)[0m [1mSELECT scores.*, SUM(scores.value) as value, survey_properties.name FROM "scores" INNER JOIN "survey_properties" ON "survey_properties"."id" = "scores"."survey_property_id" WHERE (scores.answer_id IN (78,77)) GROUP BY survey_property_id[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 2], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", nil], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"78"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "78"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 78 LIMIT 1[0m [1m[35mSurveyProperty Load (0.2ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (3.5ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (7.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/new.html.erb within layouts/survey_admin (29.8ms) Completed 200 OK in 69ms (Views: 67.2ms | ActiveRecord: 0.5ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#create as HTML Parameters: {"question_id"=>"78"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "78"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", nil], ["position", nil], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 78 LIMIT 1[0m Redirected to http://test.host/survey_admin/questions/78/answers/80 Completed 302 Found in 11ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#destroy as HTML Parameters: {"id"=>"79", "question_id"=>"78"} [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "79"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m UPDATE "answers" SET "active" = 'f', "updated_at" = '2011-12-12 07:33:06.848499' WHERE "answers"."id" = 79 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 78 LIMIT 1 Redirected to http://test.host/survey_admin/questions/78/answers Completed 302 Found in 4ms [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", 79]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#edit as HTML Parameters: {"id"=>"79", "question_id"=>"78"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "79"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 78 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 79 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (6.0ms) Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.4ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#index as HTML Parameters: {"question_id"=>"78"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "78"]] [1m[36mAnswer Load (0.2ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 78 ORDER BY answers.position ASC[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "scores" WHERE "scores"."answer_id" = 79 Completed 200 OK in 35ms (Views: 33.1ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#new as HTML Parameters: {"question_id"=>"78"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "78"]] [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 78 LIMIT 1 [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (4.7ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.3ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::AnswersController#show as HTML Parameters: {"id"=>"79", "question_id"=>"78"} [1m[35mAnswer Load (0.0ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", "79"]] [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = 78 LIMIT 1[0m [1m[35mScore Load (0.1ms)[0m SELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 79 Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"79", "question_id"=>"78"} [1m[36mAnswer Load (0.0ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "79"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 78 LIMIT 1 [1m[36mScore Load (0.1ms)[0m [1mSELECT "scores".* FROM "scores" WHERE "scores"."answer_id" = 79[0m [1m[35mSurveyProperty Load (0.1ms)[0m SELECT "survey_properties".* FROM "survey_properties" Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_score.html.erb (2.5ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/answers/_form.html.erb (5.0ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.4ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "answers" ("active", "created_at", "details", "position", "question_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00], ["details", "Johns answer"], ["position", 1], ["question_id", 78], ["updated_at", Mon, 12 Dec 2011 07:33:06 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::AnswersController#update as HTML Parameters: {"id"=>"79", "question_id"=>"78"} [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1[0m [["id", "79"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = 78 LIMIT 1 Redirected to http://test.host/survey_admin/questions/78/answers/79 Completed 302 Found in 3ms Processing by SurveyAdmin::QuestionnairesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.9ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#create as HTML Parameters: {"questionnaire"=>{"name"=>"Johnny!"}} [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "Johnny!"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questionnaires/2 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#edit as HTML Parameters: {"id"=>"2"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "2"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#index as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::QuestionnairesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "questionnaires" ("name") VALUES (?)[0m [["name", "John"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionnairesController#show as HTML Parameters: {"id"=>"2"} [1m[36mQuestionnaire Load (0.0ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1[0m [["id", "2"]] [1m[35mQuestion Load (0.2ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."questionnaire_id" IN (2) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"2"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questionnaires/_form.html.erb (0.6ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "questionnaires" ("name") VALUES (?) [["name", "John"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionnairesController#update as HTML Parameters: {"id"=>"2"} [1m[35mQuestionnaire Load (0.0ms)[0m SELECT "questionnaires".* FROM "questionnaires" WHERE "questionnaires"."id" = ? LIMIT 1 [["id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questionnaires/2 Completed 302 Found in 2ms Processing by SurveyAdmin::QuestionsController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (1.0ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (4.8ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.2ms) Processing by SurveyAdmin::QuestionsController#create as HTML [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", nil], ["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["details", nil], ["position", nil], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/78/answers Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#destroy as HTML Parameters: {"id"=>"78"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "78"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m UPDATE "questions" SET "active" = 'f', "updated_at" = '2011-12-12 07:33:07.050353' WHERE "questions"."id" = 78 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/questions Completed 302 Found in 2ms [1m[35m (0.1ms)[0m SELECT 1 FROM "questions" WHERE "questions"."id" = 78 LIMIT 1 [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", 78]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#edit as HTML Parameters: {"id"=>"78"} [1m[36mQuestion Load (0.1ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "78"]] [1m[35mQuestionnaire Load (0.1ms)[0m SELECT "questionnaires".* FROM "questionnaires" [1m[36mAnswer Load (0.1ms)[0m [1mSELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 78 ORDER BY answers.position ASC[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.7ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.7ms) Completed 200 OK in 38ms (Views: 7.6ms | ActiveRecord: 0.3ms) Processing by SurveyAdmin::QuestionsController#index as HTML [1m[35mQuestion Load (0.4ms)[0m SELECT "questions".* FROM "questions" Completed 200 OK in 93ms (Views: 91.0ms | ActiveRecord: 0.4ms) Processing by SurveyAdmin::QuestionsController#new as HTML [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (2.9ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::QuestionsController#show as HTML Parameters: {"id"=>"78"} [1m[36mQuestion Load (0.0ms)[0m [1mSELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1[0m [["id", "78"]] [1m[35mAnswer Load (0.2ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" IN (78) ORDER BY answers.position ASC Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.2ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"78"} [1m[35mQuestion Load (0.1ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "78"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mQuestionnaire Load (0.1ms)[0m [1mSELECT "questionnaires".* FROM "questionnaires" [0m [1m[35mAnswer Load (0.1ms)[0m SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 78 ORDER BY answers.position ASC Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_answer.html.erb (0.6ms) Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/questions/_form.html.erb (3.2ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.3ms) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "questions" ("active", "created_at", "details", "position", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["active", true], ["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["details", "John"], ["position", 1], ["questionnaire_id", nil], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by SurveyAdmin::QuestionsController#update as HTML Parameters: {"id"=>"78"} [1m[35mQuestion Load (0.0ms)[0m SELECT "questions".* FROM "questions" WHERE "questions"."id" = ? LIMIT 1 [["id", "78"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/questions/78/answers Completed 302 Found in 2ms Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (1.0ms) Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) Processing by SurveyAdmin::SurveyPropertiesController#create as HTML [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/33 Completed 302 Found in 2ms [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#destroy as HTML Parameters: {"id"=>"33"} [1m[36mSurveyProperty Load (0.1ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "33"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "survey_properties" WHERE "survey_properties"."id" = ?[0m [["id", 33]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/survey_admin/survey_properties Completed 302 Found in 2ms [1m[36m (0.0ms)[0m [1mSELECT 1 FROM "survey_properties" WHERE "survey_properties"."id" = 33 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#edit as HTML Parameters: {"id"=>"33"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "33"]] Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#index as HTML [1m[36mSurveyProperty Load (28.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" [0m Completed 200 OK in 68ms (Views: 39.4ms | ActiveRecord: 28.0ms) Processing by SurveyAdmin::SurveyPropertiesController#new as HTML Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.6ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#show as HTML Parameters: {"id"=>"33"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "33"]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"33"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "33"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m Rendered /Users/davidhenner/projects/survey_says/app/views/survey_admin/survey_properties/_form.html.erb (0.7ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "survey_properties" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00], ["name", "John"], ["updated_at", Mon, 12 Dec 2011 07:33:07 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by SurveyAdmin::SurveyPropertiesController#update as HTML Parameters: {"id"=>"33"} [1m[36mSurveyProperty Load (0.0ms)[0m [1mSELECT "survey_properties".* FROM "survey_properties" WHERE "survey_properties"."id" = ? LIMIT 1[0m [["id", "33"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/survey_admin/survey_properties/33 Completed 302 Found in 2ms